import { default as HtmlEditorMode } from '../types/HtmlEditorMode';
/**
 * Manages top-level state for the HTML Editor.
 *
 * Owns the editing mode (visual / code). Additional state slices
 * (activePopover, findReplace, etc.) will be added in later tasks.
 *
 * @param initialMode - Starting mode. Defaults to 'visual'.
 * @returns Reactive mode value and a stable setter.
 */
export default function useHtmlEditorState(initialMode?: HtmlEditorMode): {
    mode: HtmlEditorMode;
    setMode: (newMode: HtmlEditorMode) => void;
};
