export * from './storeTypes';
export interface ToBPayParams {
    source?: 'normal' | 'restore';
    data: {
        type?: string;
        payMethod: {
            id: string;
            code: string;
            type: string;
            name: string;
        };
        params: {
            orderId: string | number;
            symbol?: string;
            amount: string;
            surcharge?: string;
        };
        mode: 'pay' | 'refund';
    };
    callback: ToBPayCallback;
}
export declare type ToBPayCallback = (res: {
    status: string;
    data: {
        amount: number;
        surPercentRate?: number;
        surMoney?: number;
        surcharge?: number;
        uniquePaymentNumber?: string;
    };
    msg?: string;
}) => void;
/**
 * @title: 支付打开参数
 */
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
    payCallback: (res: EftposPayResult | MX51PayResult) => void;
}
/**
 * @title: eftpos支付结果
 */
export interface EftposPayResult {
    status: 'success' | 'fail';
    params: {
        amount: number;
        surPercentRate: number;
        surMoney: number;
        uniquePaymentNumber: string;
    };
}
/**
 * @title: MX51支付结果
 */
export interface MX51PayResult {
    result: boolean;
    msg?: string;
    amount: number;
    surcharge: number;
    uniquePaymentNumber: string;
}
