import { Extension } from "@codemirror/state";
import { EditorView } from "@codemirror/view";
/**
 * A Facet that stores all registered `onChange` callbacks
 */
export declare type OnChange = (code: string, view: EditorView) => void;
/**
 * An extension that calls a (debounced) function when the editor content changes
 */
export declare const onChangeCallback: (onChange?: OnChange | undefined) => Extension;
