export declare const toDate: (value: Date | string | undefined, fallback?: Date) => Date;
export declare const addMinutes: (date: Date, minutes: number) => Date;
export declare const minutesBetween: (start: Date, end: Date) => number;
/** 对齐到当前展示分钟，避免当前时间显示 14:14 时派生时长按 14:15 计算。 */
export declare const resolveBillableMinuteDate: (date: Date) => Date;
export declare const getDelayToNextBillableMinuteChange: (date?: Date) => number;
export declare const formatTime: (date: Date) => string;
/** 带秒数的时钟展示（Compare 区 Current time） */
export declare const formatClockTime: (date: Date) => string;
export declare const formatDate: (date: Date) => string;
export declare const formatRange: (start: Date, end: Date) => string;
export declare const formatDuration: (minutes: number) => string;
/** 将 HH:mm 应用到指定日期的本地时间 */
export declare const applyTimeToDate: (baseDate: Date, timeStr: string) => Date;
/** 读取店铺营业结束时刻，与 booking getShopOpeningHours 一致 */
export declare const getShopClosingTime: () => string;
/**
 * 解析预约所属营业日的结束时间；加时暂时只受店铺营业结束限制。
 * @param bookingStart 预约开始时间（决定营业日）
 */
export declare const resolveFlexibleBusinessEnd: (bookingStart: Date, _resourceEndTime?: Date | string | null, shopClosingTime?: string) => Date;
/**
 * Pay overtime：只补付从原结束时间到当前时间的超时费用。
 */
export declare const resolvePayOvertimeEnd: (current: Date, _resourceEndTime?: Date | string | null, _shopClosingTime?: string) => Date;
/** unlimited 加时商品：从预约结束延至营业结束 */
export declare const resolveUnlimitedExtension: (bookingStart: Date, bookingEnd: Date, resourceEndTime?: Date | string | null, shopClosingTime?: string) => {
    newEnd: Date;
    targetMinutes: number;
};
/**
 * 根据参考日与手动选择的结束时刻，解析新的结束时间。
 * 若所选时刻不晚于 notBefore，则顺延至下一日同一时刻。
 */
export declare const resolveManualEndDate: (referenceDate: Date, timeStr: string, notBefore: Date) => Date;
/** Manual Add time 默认结束时刻：基准结束时间 + offsetMinutes */
export declare const getDefaultManualEndTime: (baseEnd: Date, offsetMinutes?: number) => string;
