/** * Adapted from @uiw/codemirror-themes, @uiw/codemirror-theme-dracula, and * @uiw/codemirror-theme-github */ import { TagStyle } from "@codemirror/language"; export interface CreateThemeOptions { /** * Theme inheritance. Determines which styles CodeMirror will apply by default. */ theme: "light" | "dark"; /** * Settings to customize the look of the editor, like background, gutter, selection and others. */ settings: Settings; /** Syntax highlighting styles. */ styles: TagStyle[]; } export interface Settings { /** Editor background. */ background: string; /** Default text color. */ foreground: string; /** Caret color. */ caret?: string; /** Selection background. */ selection?: string; /** Selection match background. */ selectionMatch?: string; /** Background of highlighted lines. */ lineHighlight?: string; /** Gutter background. */ gutterBackground?: string; /** Text color inside gutter. */ gutterForeground?: string; /** Text active color inside gutter. */ gutterActiveForeground?: string; /** set editor font */ fontFamily?: string; } export declare const createTheme: ({ theme, settings, styles, }: CreateThemeOptions) => import("@codemirror/state").Extension[]; export declare const github: import("@codemirror/state").Extension[]; export declare const dracula: import("@codemirror/state").Extension[];