import { EditorView } from '@codemirror/view';

type Action = {
    type: "focusFile";
    id: string;
} | {
    type: "focusBlock";
    id: string;
} | {
    type: "setEditor";
    editor: EditorView;
};
export interface State {
    focusedFileId: string | null;
    focusedBlockId: string | null;
    cmView: EditorView | null;
}
export declare function StateProvider({ children, defaultState }: {
    children: React.ReactNode;
    defaultState: State;
}): import("react/jsx-runtime").JSX.Element;
export declare function useWalkthroughState(): {
    state: State;
    dispatch: import('react').Dispatch<Action>;
};
export {};
