import { Editor, Range, Point, Path, Node as SlateNode } from 'slate'; export type AbsRange = { absStart: number; absEnd: number; }; /** Compute the absolute character offset of a Point by walking all text nodes. */ export declare function pointToAbsOffset(editor: Editor, point: Point): number; /** isStart=true biases boundary offsets to the next node rather than the preceding one. */ export declare function absOffsetToPoint(editor: Editor, absOffset: number, isStart?: boolean): Point | null; export interface FakeHighlightResult { fakeHighlightAbs: AbsRange | null; fakeHighlightAbsRef: React.MutableRefObject; updateFakeHighlight: (range: Range | null) => void; updateFakeHighlightAbs: (abs: AbsRange | null) => void; decorate: ([node, path]: [SlateNode, Path]) => Range[]; } export declare function useFakeHighlight(editor: Editor): FakeHighlightResult; //# sourceMappingURL=useFakeHighlight.d.ts.map