/** * DAY-range service helpers. * * APPOINTMENT services whose schedule has a `durationRange` with * `unitType === DAY` route through the per-day slot path: * - 1 picked slot -> `bulkCreateBooking` * - 2..8 picked slots -> `createMultiServiceBooking` * * CLASS/COURSE selections and HOUR-range / fixed-duration APPOINTMENT * selections keep using the existing `createBooking` path. */ import { type Service } from '@wix/auto_sdk_bookings_services'; /** * Returns true when the given service is an APPOINTMENT whose duration is * configured as a DAY range. Useful at the UI layer (e.g. routing) to know * before a slot has been picked whether the selection will go through the * DAY-range create path. */ export declare function isDayRangeService(service: Service): boolean; /** * Bounds (in days) that a customer may pick for a DAY-range service. * Both bounds are inclusive. The server enforces 1..8 per `DailyConfig` (SDK); * this helper just exposes whatever the configured values are. */ export type DayRangeBounds = { min: number; max: number; }; /** * Returns the configured min/max day bounds for a DAY-range service, or * `null` if the service is not DAY-range. Falls back to `min = 1` / `max = min` * when the service is missing `dayOptions` configuration values. */ export declare function getDayRangeBounds(service: Service): DayRangeBounds | null;