import type { Coordinates } from './useDraggable'; /** * Event name mapping to the payload of the type. */ type EventMap = { vtDragFinished: { id: string; position: Coordinates; }; vtBeingDragged: { id: string; position: Coordinates; }; vtDragStarted: { id: string; position: Coordinates; }; vtDismissed: { id: string; }; vtStarted: { id: string; }; vtFinished: { id: string; }; vtLoadStop: { id: string; }; vtPromptResponse: { id: string; response: any; }; vtPaused: { id: string; }; vtResumed: { id: string; }; }; export type EventName = keyof EventMap; type Events = { on: (event: T, callback: (payload: EventMap[T]) => void) => void; once: (event: T, callback: (payload: EventMap[T]) => void) => void; off: (event: T, callback?: (payload: EventMap[T]) => void) => void; emit: (event: T, payload: EventMap[T]) => void; }; export default function useVtEvents(): Events; export {};