@dodona/papyros
Version:
Scratchpad for multiple programming languages in the browser.
40 lines (39 loc) • 1.35 kB
TypeScript
import { State } from "@dodona/lit-state";
import { CSSResult } from "lit";
import { Extension } from "@codemirror/state";
export type ThemeOption = {
theme: CSSResult;
dark: boolean;
name: string;
};
export declare class Constants extends State {
/**
* The maximum length of the output (in lines).
* Default is 1000 lines.
* If the output exceeds this length, it will be truncated.
* Overflowing output will be downloadable.
*/
maxOutputLength: number;
/**
* The maximum number of debug frames
* Default is 10000 frames.
* If the number of frames exceeds this limit, execution will be stopped.
*/
maxDebugFrames: number;
icons: {
debug: import("lit-html").TemplateResult<1>;
run: import("lit-html").TemplateResult<1>;
doctest: import("lit-html").TemplateResult<1>;
stop: import("lit-html").TemplateResult<1>;
stopDebug: import("lit-html").TemplateResult<1>;
info: import("lit-html").TemplateResult<1>;
help: import("lit-html").TemplateResult<1>;
edit: import("lit-html").TemplateResult<1>;
};
indentationSize: number;
CodeMirrorTheme: Extension;
themes: Record<string, ThemeOption>;
private _activeThemeName;
get activeTheme(): ThemeOption;
set activeTheme(value: ThemeOption);
}