import { State } from './store';
import { Amount } from './const';
export declare function getUuid(): string;
/**
 * @title: Promise化 setTimeout
 * @param {number} time
 * @Author: hongbing.wang
 * @Date: 2024-08-20 13:03
 */
export declare const sleep: (time: number) => Promise<unknown>;
/**
 * @title: 克隆
 * @Author: hongbing.wang
 * @Date: 2024-08-20 13:03
 */
export declare function cloneDeep(source: any, hash?: WeakMap<object, any>): any;
declare type key = 'mode' | 'amount' | 'order_id' | 'number' | 'device' | 'pay' | 'custom';
/**
 * @title: 获取支付回调参数
 * @Author: hongbing.wang
 * @Date: 2024-08-20 20:26
 */
export declare const getPayParams: (data: Partial<Omit<State, key>> & Pick<State, Extract<key, keyof State>>, statue: 'success' | 'fail') => {
    number: string | number | undefined;
    device: {
        [key: string]: unknown;
    } | undefined;
    order_id: string | number;
    amount?: undefined;
    total?: undefined;
    receipt?: undefined;
} | {
    cardReaderSurcharge: {};
    surMoney: string;
    surcharge: string;
    total: string;
    number: string | number | undefined;
    uniquePaymentNumber: string | number | undefined;
    device: {
        [key: string]: unknown;
    } | undefined;
    order_id: string | number;
    receipt: {};
    amount?: undefined;
} | {
    amount: string | number;
    total: string | number;
    number: string | number | undefined;
    device: {
        [key: string]: unknown;
    } | undefined;
    order_id: string | number;
    receipt: {};
} | {
    amount: string | number;
    total: string | number;
    number: string | number | undefined;
    order_id: string | number;
    device?: undefined;
    receipt?: undefined;
};
export declare const limitDecimals: (value: any) => any;
/**
 * @title:  通用获取 金额信息
 * @description: 在 amount 页面设置则使用 pay ,如果有 setting 则使用 setting 信息 ,都没有则设置0
 * @param {State} store : 全局store数据管理
 * @Author: hongbing.wang
 * @Date: 2024-08-12 10:24
 */
export declare function getAmonunt(store: State): Amount;
export declare function getPayAmonunt({ money, amount, surRate, surMoney }: Amount, formatAmount: (...agrn: unknown[]) => string): {
    sourceAmount: string;
    amount: string;
    surcharge: string;
    total: string;
    surPercentRate: string;
    surRate: string;
    surMoney: string;
    surRateMoney: string;
    totalUnit: string;
};
export declare function getBrowserVersion(): string;
export {};
