import { PointerEvent, RefObject } from 'react'; import { TileryFloatingResizeEdge, TileryController } from 'tilery/internal'; /** * Pointer event handlers returned by {@link useTileryFloatingPanelDrag} that * drive both move and resize interactions for floating panels. */ export type TileryFloatingPanelDragController = { /** Initiates a floating-panel move when the user drags its tab bar. */ onFloatingTabBarPointerDown: (e: PointerEvent, panelId: string) => void; /** Initiates a floating-panel resize from the given edge handle. */ onFloatingResizePointerDown: (e: PointerEvent, panelId: string, edge: TileryFloatingResizeEdge) => void; /** Dispatches move deltas for the active floating drag or resize. */ onPointerMove: (e: PointerEvent) => void; /** Commits or cancels the current floating drag/resize on pointer-up. */ onTabBarPointerUp: (e: PointerEvent) => void; /** Cancels any in-flight floating drag or resize. */ onPointerCancel: (e: PointerEvent) => void; /** * Aborts an in-flight floating drag or resize, reverting the panel to the * bounds it had when the gesture began. Returns `true` when a gesture was * cancelled, or `false` when none was active. */ cancelDrag: () => boolean; }; /** * Manages drag-to-move and edge-resize interactions for floating panels, * updating panel bounds live via the Tilery controller on every pointer-move. */ export declare function useTileryFloatingPanelDrag({ tilery, containerRef, onTabPointerMove, onTabBarPointerUp, onTabPointerCancel, }: { tilery: () => TileryController | null; containerRef: RefObject; onTabPointerMove: (e: PointerEvent) => void; onTabBarPointerUp: (e: PointerEvent) => void; onTabPointerCancel: (e: PointerEvent) => void; }): TileryFloatingPanelDragController; //# sourceMappingURL=use-floating-panel-drag.d.ts.map