import type { MutableRefObject } from "react"; import type { Appointment } from "@zigoschedule/scheduler-engine"; import type { DragPayload, DraggableCallbacks, HitTestResult } from "@zigoschedule/scheduler-interaction"; import type { ResizableCallbacks } from "@zigoschedule/scheduler-interaction"; import { type AgendaEngineContext, type AgendaValidationMessages } from "@zigoschedule/scheduler-engine"; import type { AgendaDragOverlayHandle } from "./AgendaDragOverlay"; type PointerMinuteResult = { minute: number; y: number; colEl: HTMLDivElement; scrollEl: HTMLDivElement; }; type UseAgendaGridDragResizeCallbacksArgs = { dayColRefs: MutableRefObject>; scrollRef: MutableRefObject; dragOverlayRef: MutableRefObject; dayMinuteFromY: (y: number, colHeight: number) => number; startDay: number; endDay: number; gridMin: number; prepareDndHits: () => void; releaseDndHits: () => void; hitTest: (clientX: number, clientY: number) => HitTestResult | null; findRenderedAgById: (agId: string) => Appointment | null; updateDropColumnHighlight: (hit: HitTestResult | null, blocked: boolean) => void; clearDropColumnHighlight: () => void; resolveDropResourceId: (hitProfId: string | null, fallbackProfId: string | null) => string | null; getDropBlockReason: (payload: DragPayload, dayKey: string, profId: string | null, minute: number) => string | null; agendaEngine: AgendaEngineContext; onDropAg: (agId: string, newDataHora: string, profissionalId: string | null) => Promise; onResizeAg: (agId: string, result: { direction: "start" | "end"; duracaoMinutos: number; novaDataHora?: string; }) => Promise; onMutationError?: (message: string) => void; onSetDayClosedNotice: (msg: string | null) => void; setGridNotice: (msg: string | null) => void; validationMessages?: AgendaValidationMessages; }; export declare const useAgendaGridDragResizeCallbacks: ({ dayColRefs, scrollRef, dragOverlayRef, dayMinuteFromY, startDay, endDay, gridMin, prepareDndHits, releaseDndHits, hitTest, findRenderedAgById, updateDropColumnHighlight, clearDropColumnHighlight, resolveDropResourceId, getDropBlockReason, agendaEngine, onDropAg, onResizeAg, onMutationError, onSetDayClosedNotice, setGridNotice, validationMessages, }: UseAgendaGridDragResizeCallbacksArgs) => { getPointerMinuteInColumn: (colKey: string, clientY: number) => PointerMinuteResult | null; dndCallbacks: DraggableCallbacks; resizeCallbacks: ResizableCallbacks; }; export {};