import { BaseSelection } from '@blocksuite/store'; export type TextRangePoint = { blockId: string; index: number; length: number; }; export type TextSelectionProps = { from: TextRangePoint; to: TextRangePoint | null; reverse?: boolean; }; export declare class TextSelection extends BaseSelection { static group: string; static type: string; from: TextRangePoint; reverse: boolean; to: TextRangePoint | null; get end(): TextRangePoint; get start(): TextRangePoint; constructor({ from, to, reverse }: TextSelectionProps); static fromJSON(json: Record): TextSelection; private _equalPoint; empty(): boolean; equals(other: BaseSelection): boolean; isCollapsed(): boolean; isInSameBlock(): boolean; toJSON(): Record; } export declare const TextSelectionExtension: import("@blocksuite/store").ExtensionType; //# sourceMappingURL=text.d.ts.map