/** * @title: 格式化holder表数据 * @description: * @param {any} data * @return {*} * @Author: WangHan * @Date: 2025-05-07 21:22 */ export declare const formatHolder: (data: any[]) => any[]; export declare const formatGuest: (data: any[], products: any) => any[]; /** * @title: 格式化购物车中资源上挂接的表单数据 * @description: * @param {any} data * @param {any} resources * @return {*} * @Author: WangHan * @Date: 2025-05-06 22:22 */ export declare const formatCartsResources: (carts: any[], resources: any[], setPolicyIds: any) => any[]; /** * @title: 格式化购物车数据 * @description: * @param {any} data * @param {any} resources * @param {any} accountLists * @return {*} * @Author: WangHan * @Date: 2025-05-07 21:22 */ export declare const formatCarts: (data: any[], resources: any[], utils: any, accountLists?: any) => any[]; /** * @title: 对资源进行排序 * @description: * @param {any} currentResourcesMap * @param {any} resourceSort * @return {*} * @Author: WangHan * @Date: 2025-04-14 11:16 */ export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined; /** * @title: 处理资源列表并提取资源代码 * @description: 对资源列表进行排序,并提取 resourceCodes * @param {any[]} resources - 原始资源列表 * @param {any[]} resourceSort - 资源排序配置 * @return {*} 返回处理后的资源列表和资源代码数组 * @Author: WangHan * @Date: 2025-11-21 15:33 */ export declare const processResourceList: (resources: any[], resourceSort: any[]) => { resources: any[]; resourceCodes: any; }; export declare const getMeAccount: (val: any[]) => any; export declare const getCustomer: (utils: any) => any; export declare const formatCustomer: (val: any) => { id: any; username: string; }; export declare const formatCurrentUser: (utils: any) => { id: any; username: string; }; /** * @title: 定金合并的标点符号 * @description: * @return {*} * @Author: WangHan * @Date: 2025-04-21 17:52 */ export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any; /** * @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单 * @description: * @param {any} array * @param {any} resources * @return {*} * @Author: WangHan * @Date: 2025-04-25 19:05 */ export declare const hasResourceFormId: (array: any[]) => boolean | undefined; export declare const formatForms: (array: any[]) => ({ form_id: any; policy_id: any; id: any; cart_id: any; } | null)[]; /** * @title: 打开表单 * @description: * @param {string} title * @param {any} callback * @return {*} * @Author: WangHan * @Date: 2025-04-26 15:26 */ export declare const openForm: ({ form_id, title, callback, utils }: any) => void; /** * @title: 更新数组 * @description: * @return {*} * @Author: WangHan * @Date: 2025-04-26 18:13 */ export declare function updateLists>(list: T[], key: string, value: any, newData: Partial): T[]; /** * @title: 更新表单存储 * @description: * @param {any} bookingForm * @param {number} id * @param {any} newData * @return {*} * @Author: WangHan * @Date: 2025-04-27 17:27 */ export declare const updateBookingFormStorage: (bookingForm: any, id: number | string, newData: any) => any; export declare const Toast: (text: string) => void; /** * @title: 添加或移除表单步骤 * @description: * @param {any} param1 * @return {*} * @Author: WangHan * @Date: 2025-05-06 21:51 */ export declare const checkHasFormStep: ({ setIsErrorHolder, nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => void; export declare const getCartCurrentResourceData: (cart: any, currentKey: any, resources: any[]) => any; /** * @title: 获取购物车资源列表 * @description: * @return {*} * @Author: WangHan * @Date: 2025-05-25 13:56 */ export declare const getMultiResources: (cart: any, currentSelectedResource: any, currentKey: string) => any[]; export declare const getCurrentBoard: (appointmentBooking: any, code: string) => any; /** * @title: * @description: 根据资源code获取资源标题 * @param {any} appointmentBooking * @param {string} code * @return {*} * @Author: WangHan * @Date: 2025-05-24 18:51 */ export declare const getResourceTitle: (appointmentBooking: any, code: string, utils: any, originResource: any) => string; /** * @title: 监测购物车中是否有没有选择资源的 * @description: * @param {any} carts * @return {*} * @Author: WangHan * @Date: 2025-05-24 18:47 */ export declare const checkAndMarkCartRenderError: (carts: any, appointmentBooking?: any, utils?: any) => { hasError: boolean; updatedCartList: any; } | { hasError?: undefined; updatedCartList?: undefined; }; /** * @title: 查表表单步骤插入到哪个步骤的后面的key * @description: * @param {string} currentKey * @param {any} stepList * @return {*} * @Author: WangHan * @Date: 2025-05-24 19:05 */ export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[]) => any; /** * @title: 监测holder数据 * @description: * @param {any} isFormSubject * @param {any} checkAccount * @param {any} carts * @return {*} * @Author: WangHan * @Date: 2025-05-24 22:46 */ export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => { hasError: boolean; updatedCartList: any[]; }; export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => { isRequired: boolean; isSystem: boolean; isSkip: boolean; form_id: number; form_code: any; cart_id: string; resource_form_id: string; policy_id: string; } | { isRequired?: undefined; isSystem?: undefined; isSkip?: undefined; form_id?: undefined; form_code?: undefined; cart_id?: undefined; resource_form_id?: undefined; policy_id?: undefined; }; export declare const currentRenderLists: (resources: any[], code: any) => any; /** * @title: 更新购物车 * @description: * @param {any} carts * @param {any} value * @return {*} * @Author: WangHan * @Date: 2025-05-25 23:17 */ export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any; /** * @title: 根据步骤key清空数据 * @param {string} key - 当前步骤的key * @param {any} appointmentBooking - 预约预订实例 * @param {(times: any[]) => void} setTimes - 设置时间列表的回调函数 * @return {string[]} 返回需要清空的数据类型数组 * @Author: WangHan * @Date: 2025-11-21 15:40 */ export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined;