import { default as VanillaSelectionArea, SelectionEvents, PartialSelectionOptions } from '@viselect/vanilla'; import { FunctionalComponent, JSX } from 'preact'; export interface SelectionAreaProps extends PartialSelectionOptions, JSX.HTMLAttributes { id?: string; className?: string; onBeforeStart?: SelectionEvents['beforestart']; onBeforeDrag?: SelectionEvents['beforedrag']; onStart?: SelectionEvents['start']; onMove?: SelectionEvents['move']; onStop?: SelectionEvents['stop']; } export declare const useSelection: () => VanillaSelectionArea | undefined; export declare const SelectionArea: FunctionalComponent;