import type { MutableRefObject } from "react"; import type { AppointmentColor, AppointmentColorMode } from "@zigoschedule/scheduler-core"; import type { Appointment, AgendaGridSelectionDragRef, Block, DaySelection, BreakWindow, Professional } from "@zigoschedule/scheduler-engine"; import { type AgendaResolvedOptions, type AgendaNativeInteractionEvent, type AgendaViewId } from "@zigoschedule/scheduler-engine"; type GridBusinessHours = { startMinute: number; endMinute: number; isClosed?: boolean; closedMessage?: string; }; type Props = { date: Date; days?: Date[]; displayProfs: Professional[]; themeProfs?: Professional[]; appointmentColorMode: AppointmentColorMode; appointmentDefaultColor: AppointmentColor; loading?: boolean; gridMin: number; canUpdateAppointments: boolean; agsByDay: Map; mutationAgsByDay: Map; bloqsByDay: Map; pendingAppointmentIds: ReadonlySet; slots: number[]; majors: Set; startDay: number; endDay: number; selectedDayClosedMessage: string | null; getBusinessHoursForDay?: (dayKey: string) => GridBusinessHours; getProfessionalBusinessHoursForDay?: (dayKey: string, profissionalId: string | null) => GridBusinessHours | null; tenantPausaIntervalo: BreakWindow | null; getPausaIntervaloForProfessionalDay?: (dayKey: string, profissionalId: string | null) => BreakWindow | null; dayColRefs: MutableRefObject>; dayDragRef: MutableRefObject; pendingSelectionRef: MutableRefObject; selectionOverlayRef: MutableRefObject; daySelection: DaySelection | null; onSetDaySelection: (sel: DaySelection | null) => void; onSetDayClosedNotice: (msg: string | null) => void; onCloseDaySelection: () => void; isSelectedDateBeforeBrazilToday: (dayKey: string) => boolean; isDiaEncerradoParaHoje: (dayKey: string) => boolean; isSlotInPastBrazil: (dayKey: string, minute: number) => boolean; slotTakenInCol: (dayKey: string, profId: string | null, minute: number) => boolean; resolveSelectableStartInCol: (dayKey: string, profId: string | null, minute: number) => number | null; dayMinuteToPx: (minute: number, colHeight: number) => number; dayMinuteFromY: (y: number, colHeight: number) => number; onOpenBloqueio: (bloq: Block, dayKey: string, s: number, e: number, jsEvent?: AgendaNativeInteractionEvent) => void; onOpenAgendamento: (ag: Appointment, dayKey: string, s: number, e: number, jsEvent?: AgendaNativeInteractionEvent) => void; 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; /** Overrides the built-in minimum column width, in pixels. */ columnMinWidth?: number; /** * Minimum height of one slot row, in pixels. Rows still stretch to fill the * viewport when there is spare space; raising this makes the day taller than * the viewport instead, which is what puts the grid on a scrollbar. */ rowHeight?: number; calendarOptions: AgendaResolvedOptions; calendarView: AgendaViewId; onAgendaCallbackError?: (error: Error | null) => void; }; export declare const AgendaGrid: import("react").NamedExoticComponent; export {};