import { Extension, TransactionSpec } from "@codemirror/state";
export declare type ThemeName = "light" | "dark";
export declare type HighlightStyle = "light" | "dark" | "none";
export declare const setTheme: (theme?: ThemeName | undefined) => TransactionSpec;
export declare const setReadOnly: (readOnly: boolean) => TransactionSpec;
export declare const setHighlightStyle: (highlightStyle?: HighlightStyle | undefined) => TransactionSpec;
export declare const setDimensions: (width: number, height: number) => TransactionSpec;
export declare const editable: ({ readOnly }: {
    readOnly: boolean;
}) => Extension;
export declare const appearance: ({ domElement, theme, highlightStyle, }: {
    domElement?: Element | undefined;
    theme?: ThemeName | undefined;
    highlightStyle?: HighlightStyle | undefined;
}) => Extension;
