UNPKG

available-slots

Version:

Find available time slots from your daily schedule with configurable chunks & breaks.

19 lines 559 B
export interface TimeSlot { start: string; end: string; } export interface SlotsOptions { busy: TimeSlot[]; slotSize?: number; breakTime?: number; startTime?: string; endTime?: string; } /** * Main entry point for finding available time slots in a daily schedule. * Processes user options, handles overlapping busy periods, and orchestrates * the slot generation algorithm to return available time periods. */ declare const slots: (options: SlotsOptions) => TimeSlot[]; export default slots; //# sourceMappingURL=index.d.ts.map