import { type MutableRefObject, type ReactNode } from "react"; export interface EditorContextValue { content: string; onChange: (content: string) => void; path: string; isDirty: boolean; isSaving: boolean; onSave?: () => void; onClose?: () => void; editorRef: MutableRefObject; recovery?: { timestamp: number; onRestore: () => void; onDismiss: () => void; }; } export interface EditorHandle { jumpToLine: (line: number) => void; } export declare function useEditorContext(): EditorContextValue; export declare function useEditorContextOptional(): EditorContextValue | null; interface EditorProviderProps { children: ReactNode; value: EditorContextValue; } export declare function EditorProvider({ children, value }: EditorProviderProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=editor-context.d.ts.map