import { RemovableRef } from "@vueuse/core" export type LANGUAGE = "c" | "python" | "cpp" | "turtle" export interface Code { value: string language: LANGUAGE } export interface Cache { language: RemovableRef input: RemovableRef code: { [key in LANGUAGE]: RemovableRef } fontsize: RemovableRef } export enum Status { NotStarted = 0, Accepted = 3, CompileError = 6, RuntimeError = 11, } export interface Submission { stdout: string time: string memory: number stderr: string token: string compile_output: string message: string status: { id: number description: string } } export interface File { in: string out: string error: boolean } export type Tab = "code" | "input" | "output" | "setting"