import { type EditorCore, type EngineAdapter, type OpenResult, type Selection } from "@auto-hwp/editor-core"; export interface HwpEditorState { /** The headless editor core (session + selection + edit) — call its commands directly. */ core: EditorCore; /** The open document's metadata (pages/format/editable), or null when nothing is open. */ meta: OpenResult | null; /** The current selection (single source of truth): anchor + visual mark per item. */ selection: Selection[]; /** Monotonic token bumped whenever the layout is invalidated (re-fetch page SVGs on change). */ refreshToken: number; /** Force a page re-fetch (used by the UI on a wasm-trap recovery, which has no layout signal). */ bumpRefresh: () => void; } export declare function useHwpEditor(adapter: EngineAdapter): HwpEditorState; //# sourceMappingURL=useHwpEditor.d.ts.map