import { type Dayjs } from 'dayjs'; import type { TimeRangeOption } from '@pisell/materials'; /** * 从 `store.getDataByModel('core', 'core')` 的返回值上取出营业日界钟配置。 * 兼容两种挂载:嵌在 `.core.operating_day_boundary`,或与模型根同级的 `.operating_day_boundary` *(部分宿主/历史数据不会多包一层 `core`)。 */ export declare function resolveOperatingDayBoundaryFromCoreModel(coreModel: unknown): unknown; export declare function normalizeBoundaryClock(raw: string): string | null; /** * 解析引擎 `core.operating_day_boundary`:`start_time` / `end_time` 均读取 `time` 作为营业日跨日界钟; * 无法解析或类型不匹配时返回 `null`(调用方退回 {@link RESERVATION_TIMELINE_BUSINESS_RANGE})。 */ export declare function boundaryClockFromOperatingDayBoundary(operatingDayBoundary: unknown): string | null; /** * `operating_day_boundary.type === 'end_time'` 时:顶栏选中日 D 表示「营业日在 D 的界钟结束」, * 营业窗为 [D−1 界钟, D 界钟);`getRangeBounds` / 列表 `booking_time_start_between` 须把锚定自然日设为 D−1。 * `start_time`(或其它):锚定日为 D(界钟在 D 起算至次日同钟)。 */ export declare function timelineReferenceDateForScheduleDay(scheduleDate: Dayjs, operatingDayBoundary?: unknown): Dayjs; /** * 与引擎 `core` 中 `operating_day_boundary` 对齐,生成 PisellTimeNavigator / 日历共用的 * {@link TimeRangeOption}(起止钟面相同,由 getRangeBounds 展开为 24h)。 * 否则退回 {@link RESERVATION_TIMELINE_BUSINESS_RANGE}(默认 02:00–次日 02:00)。 */ export declare function timelineRangeFromOperatingDayBoundary(operatingDayBoundary: unknown): TimeRangeOption;