import type { Box } from "@auto-hwp/editor-core"; /** The pre-highlight target under the cursor: a block/cell box in own-render PAGE px on `page`, tagged by * `kind` (paragraph/cell/table/image/…). null ⇒ nothing under the cursor (highlight cleared). */ export interface HoverHighlight { page: number; box: Box; kind: string; } /** Whether two highlights are the SAME target (same page+kind and ~same box). Sub-px jitter is ignored so a * re-query that resolves to the identical block does NOT churn the store (issue 038 §설계 dedup). */ export declare function sameHighlight(a: HoverHighlight | null, b: HoverHighlight | null): boolean; /** Is the PAGE-px point (x,y) inside `box` (own-render px)? The cheap dedup pre-check: while the pointer * stays inside the last hit's box it is over the SAME block, so the wasm re-query is skipped entirely. */ export declare function pointInBox(x: number, y: number, box: Box): boolean; export declare class HoverStore { private cur; private listeners; get(): HoverHighlight | null; set(h: HoverHighlight | null): void; subscribe(cb: (h: HoverHighlight | null) => void): () => void; } /** The cursor the pointer should show — the WHOLE policy of the FG-06 cursor system in one type. */ export type HoverCursor = "text" | "col-resize" | "row-resize" | "grab" | "grabbing" | "default"; /** Everything the cursor decision depends on (issue 038 §설계: hit kind → cursor, ONE pure function). */ export interface CursorContext { /** Space-hold pan DRAG in progress (035) → grabbing. */ panning: boolean; /** Space-hold pan mode armed, no drag yet (035) → grab. */ panMode: boolean; /** Over a 031 resize grip — reuse the existing grip DOM as the boundary judgment (no new arithmetic). */ overGrip: "col" | "row" | null; /** The block kind under the pointer (paragraph → text I-beam), or null. */ hitKind: string | null; /** editingOn — when false the doc isn't editable here, so no text/resize cursor: default only. */ editing: boolean; } export declare function cursorForContext(c: CursorContext): HoverCursor; /** Record one hover hit-test duration (ms). */ export declare function recordHoverQueryMs(ms: number): void; /** DEV/test helper: all recorded hover query durations since the last reset. */ export declare function __getHoverQueryMs(): number[]; /** DEV/test helper: zero the recorded hover query durations. */ export declare function __resetHoverQueryMs(): void; /** Bump the HoverLayer commit counter (called at the top of each HoverLayer render). */ export declare function bumpHoverLayerRenderCount(): void; /** DEV/test helper: how many times any HoverLayer has committed since the last reset. */ export declare function __getHoverLayerRenderCount(): number; /** DEV/test helper: zero the HoverLayer commit counter (call right before a measured hover). */ export declare function __resetHoverLayerRenderCount(): void; //# sourceMappingURL=hover.d.ts.map