import { EditorState, Text } from '@codemirror/state';
/**
 * Returns a shared instance of CodeMirror's EditorState.
 * If the instance doesn't exist, it creates one with the given initial content.
 *
 * @param initialDoc - The initial content for the editor, either as a `string` or `Text`.
 * @param extensions - Optional extensions to be applied to the editor.
 * @returns The shared EditorState instance.
**/
export declare const getSharedEditorState: (initialDoc?: string | Text, extensions?: any[]) => EditorState;
/**
 * Resets the singleton instance (useful for testing or reinitializing).
**/
export declare const resetSharedEditorState: () => void;
//# sourceMappingURL=CodemirrorStateSingleton.d.ts.map