import { SugarElement } from '../../api/node/SugarElement'; import type { SimSelection } from '../../api/selection/SimSelection'; type SelectionDirectionHandler = (start: SugarElement, soffset: number, finish: SugarElement, foffset: number) => U; export interface SelectionDirection { readonly fold: (ltr: SelectionDirectionHandler, rtl: SelectionDirectionHandler) => U; readonly match: (branches: { ltr: SelectionDirectionHandler; rtl: SelectionDirectionHandler; }) => U; readonly log: (label: string) => void; } type SelectionDirectionConstructor = (start: SugarElement, soffset: number, finish: SugarElement, foffset: number) => SelectionDirection; declare const diagnose: (win: Window, selection: SimSelection) => SelectionDirection; declare const asLtrRange: (win: Window, selection: SimSelection) => Range; declare const ltr: SelectionDirectionConstructor; declare const rtl: SelectionDirectionConstructor; export { ltr, rtl, diagnose, asLtrRange }; //# sourceMappingURL=SelectionDirection.d.ts.map