export declare const getIsBundleOrCombination: (productDetail: any) => boolean; export declare const uniqueByField: (arr: any[], field: string) => any[]; export declare const moveItemToFront: (arr: any[], targetId: string | number) => any[]; /** * @title: 判断两个时间是否在同一个时间段内 * @description: * @param {number} time1 开始时间 * @param {number} time2 结束时间 * @param {number} interval 时间间隔 * @return {*} * @Author: zhiwei.Wang * @Date: 2024-08-13 19:37 */ export declare const isInterval: (time1: number, time2: number, interval?: number) => boolean; /** * @title: 根据时间间隔格式化服务列表 * @description: 防止短时间内添加多个相同服务, 如果两个服务的时间间隔小于1秒,则合并为一个服务 * @param {any} list 服务列表 * @return {*} * @Author: zhiwei.Wang * @Date: 2024-08-13 19:36 */ export declare const formatServiceListByTime: (list: any[]) => any[]; export declare const isBooking4Shop: (shopId: number, renderType?: string, businessUtils?: any) => any; declare type DataEntry = { total: number; origin_total: number; num: number; quotation_id: number; start_date: string; end_date: string; }; declare type ResultStructure = Record>; export declare const getMultiDayPrices: (data: DataEntry[]) => ResultStructure; /** * @title: 是否是跨日预约 * @description: * @param {number} shopId * @return {*} * @Author: WangHan * @Date: 2024-11-29 11:19 */ export declare const isDayBooking: (shopId: number) => boolean; export declare const isOpenAddTime: (state: any) => boolean; export declare const isShowAddTime: (state: any, currentService: any) => boolean; export declare const editSessionProduct: (cacheItem: any, session: any) => { duration: any; start_time: any; } | undefined; export {};