import type { MutableRefObject } from "react"; import type { Appointment, DayProfCardTheme } from "@zigoschedule/scheduler-engine"; import { type AppointmentColorMode } from "@zigoschedule/scheduler-core"; type AgendaPreviewPhase = "dragging" | "resizing" | "committing" | "reverting"; export type DragPreview = { agId: string; dayKey: string; profId: string | null; minute: number; durationMinutes: number; blockedMessage: string | null; phase: AgendaPreviewPhase; }; export type ResizePreview = { agId: string; dayKey: string; profId: string | null; startMinute: number; endMinute: number; blockedMessage: string | null; phase: AgendaPreviewPhase; }; export type AgendaDragOverlayHandle = { setDragPreview: (p: DragPreview | null) => void; setResizePreview: (p: ResizePreview | null) => void; setDraggedAg: (ag: Appointment | null) => void; }; type AgendaDragOverlayProps = { dayColRefs: MutableRefObject>; scrollRef: MutableRefObject; startDay: number; endDay: number; gridMin: number; slotHeight: number; dayMinuteToPx: (minute: number, colHeight: number) => number; getProfCardTheme: (profId?: string | null) => DayProfCardTheme; getAppointmentServiceLabel: (ag: Appointment, short?: boolean) => string; /** * Same color inputs as the card. The preview must use both, otherwise it * paints by professional while the card paints by appointment color, making the * appointment appear to change color during drag. */ appointmentColorMode: AppointmentColorMode; appointmentDefaultColor: string; }; export declare const AgendaDragOverlay: import("react").MemoExoticComponent>>; export {};