export interface ImeComposition { /** The own-render page the caret (and thus the composing text) sits on. */ page: number; /** The current composing string (`compositionupdate.data`) — the transient, pre-commit text. */ text: string; } export declare class CompositionStore { private cur; private changed; get(): ImeComposition | null; /** True while a composition is live on `page` (CaretLayer reads this to suppress its caret). */ composingOn(page: number): boolean; /** Replace the live composition (or clear it with `null`). Emits only on a MEANINGFUL change so a * same-value update never churns subscribers — presence flips (start/end) and text edits both count, * but a redundant `null→null` is swallowed. */ set(next: ImeComposition | null): void; onChange(l: (c: ImeComposition | null) => void): () => void; } //# sourceMappingURL=composition.d.ts.map