import type { EditorCore } from "@auto-hwp/editor-core"; import type { CompositionStore } from "../composition"; /** The rendered glyph next to the caret — the face/size/baseline the preview must match (#403). */ export interface CaretGlyph { /** SVG `font-family` as the renderer emitted it (already the display-mapped face, e.g. a 명조 → Nanum Myeongjo). */ family: string | null; /** Glyph EM in page (viewBox) px. */ size: number; /** Baseline y in page (viewBox) px. */ baseline: number; } export declare function findCaretGlyph(svg: Element | null | undefined, caret: { x: number; top: number; height: number; }): CaretGlyph | null; export interface ImeCompositionLayerProps { /** The headless editor core — the layer subscribes to `core.caret` DIRECTLY (030 isolation): 셀 * 캐럿이든 본문 문단 캐럿이든 조합 표면은 하나다. */ core: EditorCore; /** The page this layer belongs to (a caret on another page → this layer renders nothing). */ page: number; /** rendered px / viewBox px for this page (page-px → client-px). Only zoom changes it. */ scale: number; /** Shared signal so the CaretLayer HIDES its bar while composing (no double caret). */ store: CompositionStore; /** Commit the composed string as ONE SetTableCellRuns undo unit — the host wraps it with trap/toast * recovery, so this layer stays free of engine-error policy (it just forwards `compositionend.data`). */ commit: (text: string) => void; /** #507 — an explicit address-focus command may claim input from host controls. Ordinary caret * changes keep the existing no-focus-stealing guard. Set only after the target page is ready. */ focusRequest?: { current: number | null; }; } export declare function ImeCompositionLayer({ core, page, scale, store, commit, focusRequest }: ImeCompositionLayerProps): import("react").JSX.Element | null; //# sourceMappingURL=ImeCompositionLayer.d.ts.map