import type { CalendarSystem, Timestamp } from '@timestamp-js/core'; interface DisabledIntervalTimes { /** Inclusive start time, in HH:mm form. */ start: string; /** Exclusive end time, in HH:mm form; 24:00 represents the end of the date. */ end: string; } /** A time window on one date or on each date in an inclusive date range. */ export type DisabledIntervalRange = DisabledIntervalTimes & ({ /** Date in the configured calendar system, in YYYY-MM-DD form. */ date: string; from?: never; to?: never; } | { date?: never; /** Inclusive first date in the configured calendar system. */ from: string; /** Inclusive last date in the configured calendar system. */ to: string; }); /** A date/time string selects its containing cell; a range selects overlapping cells. */ export type DisabledInterval = string | DisabledIntervalRange; interface IntervalRange { firstDay: number; lastDay: number; start: number; end: number; } export declare function normalizeDisabledIntervals(entries: readonly DisabledInterval[], calendar?: CalendarSystem): IntervalRange[]; export declare function isDisabledInterval(timestamp: Timestamp, duration: number, ranges: readonly IntervalRange[], calendar?: CalendarSystem): boolean; export {};