import { RefObject } from 'react'; import { TileryController, TileryPanelId, TileryTabId, TileryDragState } from 'tilery/internal'; export { tileryAdjacencySide, tileryClassifyByZoneAndSide, tileryCommitDrag, } from 'tilery/internal'; export type { TileryDragState } from 'tilery/internal'; /** * Creates all pointer event handlers and DOM-element registration callbacks * needed to drive tab and panel dragging within the Tilery layout. * * @returns Handlers to attach to tab, tab-bar, and container elements, the * current {@link TileryDragState}, and ref-registration helpers. */ export declare function useTileryDragController(tilery: () => TileryController | null, mainContainerRef?: RefObject): { dragState: TileryDragState | null; panelDragRef: RefObject; registerPanel: (panelId: TileryPanelId, el: HTMLElement | null) => void; registerTabBar: (panelId: TileryPanelId, el: HTMLElement | null) => void; registerTab: (tabId: TileryTabId, el: HTMLElement | null) => void; onTabPointerDown: (e: React.PointerEvent, tabId: TileryTabId) => void; onTabPointerMove: (e: React.PointerEvent) => void; onTabPointerUp: (_e: React.PointerEvent, tabId: TileryTabId, onClick: () => void) => void; onTabPointerCancel: (e: React.PointerEvent) => void; onTabBarPointerDown: (e: React.PointerEvent, panelId: TileryPanelId) => void; onTabBarPointerUp: (e: React.PointerEvent) => void; cancelDrag: () => boolean; }; //# sourceMappingURL=use-drag-controller.d.ts.map