import * as React from 'react'; export interface SectionBand { top: number; bottom: number; } export interface LongPressReorderOptions { ids: readonly Id[]; onReorder: (order: Id[]) => void; /** Vertical extent of each section, for hit-testing the drag. Defaults to the registered element. */ measure?: (id: Id) => SectionBand | null; holdMs?: number; moveTolerance?: number; } export interface LongPressReorder { order: readonly Id[]; activeId: Id | null; isReordering: boolean; handlersFor: (id: Id) => { ref: (element: HTMLElement | null) => void; onPointerDown: (event: React.PointerEvent) => void; onKeyDown: (event: React.KeyboardEvent) => void; onClick: (event: React.MouseEvent) => void; }; } /** * Press-and-hold, then drag, to reorder a list of sections. A short press falls * through untouched so the header's own click still toggles the section. */ export declare function useLongPressReorder(options: LongPressReorderOptions): LongPressReorder; //# sourceMappingURL=useLongPressReorder.d.ts.map