import { type BreakWindow, type Professional } from "@zigoschedule/scheduler-engine"; export type ColumnBusinessHours = { startMinute: number; endMinute: number; isClosed?: boolean; closedMessage?: string; }; export type AgendaColumnBounds = { professional: Professional | null; businessHours: ColumnBusinessHours; professionalBusinessHours: ColumnBusinessHours; pause: BreakWindow | null; /** First bookable minute: the latest of grid, business and professional. */ startMinute: number; /** Last bookable minute: the earliest of the three. */ endMinute: number; /** Where the greyed-out tail begins, when the column closes before the grid. */ bottomBlockedStartMinute: number; /** Null when the column is open. */ closedMessage: string | null; /** Always a sentence; used when a click lands outside the working hours. */ outOfHoursMessage: string; }; type Input = { dayKey: string; professionalId: string | null; displayProfs: Professional[]; gridStartMinute: number; gridEndMinute: number; axisEndMinute: number; snapMinutes: number; getColumnBusinessHours: (dayKey: string) => ColumnBusinessHours; getColumnProfessionalBusinessHours: (dayKey: string, profId: string) => ColumnBusinessHours; getColumnPausaIntervalo: (dayKey: string, profId: string | null) => BreakWindow | null; fallbackClosedMessage: string; fallbackOutOfHoursMessage: string; professionalOutOfHoursMessage: (professionalName: string) => string; }; /** * The working window of a single column. * * Three schedules narrow it in sequence: the grid's own span, the business's * opening hours, and the professional's own shift. A column is only bookable * where all three agree, which is why every bound is a `max` or a `min` and * never an assignment. */ export declare function resolveAgendaColumnBounds(input: Input): AgendaColumnBounds; export {};