import dayjs from 'dayjs';
export declare const getUsableTime: (cacheItem: any) => any;
export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
    startDate: dayjs.Dayjs;
    usableTime: any;
    duration: string | number | {
        type: string;
        value: number;
    };
    locale: any;
    slice: any;
    selectProps: {
        size: string;
    };
};
/**
 * @title: 灵活时长选项
 * @description:
 * @param {*} useMemo
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-02-23 10:10
 */
export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
    label: any;
    value: any;
} | null;
export declare const getTimeSlices: ({ state }: any) => {
    timeSlices: {
        label: string;
        value: string;
    }[];
};
/**
 * @title: 时间切片
 * @description:
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-01-09 13:37
 */
export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
    timeSlices: {
        label: string;
        value: string;
    }[];
    durationSlicesBasedOnTime: {
        label: string;
        value: number;
    }[];
};
/**
 * @title: 获取资源列表
 * @description:
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-01-09 13:38
 */
export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
    list: any;
    maps: any;
};
export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
/**
 * @title: 设置默认容量
 * @description:
 * @param {any} param1
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-09-19 20:26
 */
export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
/**
 * @title: 将商品内关联的资源id还原成数据
 * @description:
 * @param {any} resourcesOriginMap
 * @param {any} cacheItem
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-09-19 20:23
 */
export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
/**
 * @title: 预生成服务的 extend
 * @description:
 * @param {any} param1
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-06-01 13:25
 */
export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
/**
 * @title: 格式化服务列表
 * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
 * 使用with resourceRelation后 返回的resource_relation是实时数据
 * 这里做一次转换
 * @param list
 */
export declare const transServiceList: (list: any[]) => any[];
