import type { WorkspaceHandle, WorkspaceTextFormat } from "./components/HwpWorkspace"; /** #482 — what a host-drawn chrome usually shows, read from a `WorkspaceHandle`. */ export interface WorkspaceViewState { /** Committed zoom factor (1 = 100%). */ zoom: number; /** Page at the reading line (0-based) — the status bar's page. */ page: number; /** Live page count (0 without a document). */ pageCount: number; canUndo: boolean; canRedo: boolean; /** Character format of the current selection, `null` without one. */ format: WorkspaceTextFormat | null; } /** * #482 — subscribe a host component to a workspace handle: the React-layer convenience over * `WorkspaceHandle.subscribe`. Re-renders only the calling component, and only when a value it returns * changed (the handle notifies after state settles — never per gesture tick). `null` until a handle is given: * * const [ws, setWs] = useState(null); * const view = useWorkspaceState(ws); // { zoom, page, pageCount, canUndo, canRedo, format } | null * */ export declare function useWorkspaceState(handle: WorkspaceHandle | null | undefined): WorkspaceViewState | null; //# sourceMappingURL=useWorkspaceState.d.ts.map