/** Whether a press is swallowed because the same gesture selected text: dragging across a row's text ends * in a click that would navigate and discard the selection. `PressableRow` and `RowFocusEntry` consult * it. Narrow on purpose, since an unopenable row is worse: only a real selection suppresses, and only * pointer gestures on the door, since a selection survives Tab and would block Enter. */ /** Structural, so the module is DOM-free and testable without a document. */ export interface TextSelection { isCollapsed: boolean; toString(): string; } /** A collapsed selection is a caret; whitespace-only is what a stray click leaves, so it reads as nothing. */ export declare function isTextSelected(selection: TextSelection | null | undefined): boolean; /** Null where `window.getSelection` is unavailable (prerender), so nothing is suppressed. */ export declare function activeTextSelection(): TextSelection | null; export declare function pressSelectedText(): boolean;