import { Observable } from 'rxjs'; import { SpineItem } from '../..'; import { EnhancerOutput, RootEnhancer } from '../types/enhancer'; type SelectionChange = { itemIndex: number; type: "change"; selection: Selection; }; type SelectionOver = { itemIndex: number; type: "over"; event: Event; selection: Selection; }; type SelectionValue = SelectionChange | SelectionOver | undefined; export declare const selectionEnhancer: >(next: (options: InheritOptions) => InheritOutput) => (options: InheritOptions) => InheritOutput & { selection: { selection$: Observable; selectionStart$: Observable; selectionEnd$: Observable; selectionOver$: Observable; lastSelectionOnPointerdown$: Observable; getSelection: () => SelectionValue; createOrderedRangeFromSelection: (params: { selection: { anchorNode?: Node | null; anchorOffset?: number; focusNode?: Node | null; focusOffset?: number; }; spineItem: SpineItem; }) => Range | undefined; }; }; export {};