import { PayGroup } from './model';
/**
 * 生成 `/h5/core/stash` 的 token：前缀 + 订单号
 */
export declare const buildPayGroupStashToken: (orderId: string) => string;
/**
 * @title: 同步交易组到storage
 * @description:
 * @param {PayGroup} payGroup
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-08-16 10:40
 */
export declare const syncPayGroupToStorage: (payGroup: PayGroup) => void;
/**
 * @title: 通过订单id获取交易组
 * @description:
 * @param {string} orderId
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-08-16 10:40
 */
export declare const getPayGroupFromStorage: (orderId: string) => PayGroup | null;
/**
 * @title: 删除交易组
 * @description:
 * @param {string} orderId
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-08-16 10:40
 */
export declare const removePayGroupFromStorage: (orderId: string) => void;
/**
 * @title: 获取交易组参数
 * @description:
 * @param {string} orderId
 * @param {any} rest
 * @return {*}
 * @Author: zhiwei.Wang
 * @Date: 2024-08-16 10:40
 */
export declare const getPayGroupParamsFromStorage: (orderId: string, rest?: any) => any;
/**
 * @title: 通过订单id设置交易号
 * @description: 合并 pay_number 后调用 `/h5/core/stash` 最多 3 次；无论 stash 成败均写入 localStorage
 * @param {string} orderId
 * @param {string} payNumber
 * @param {string} [token] 引擎 utils.token.get()，写入 stash 的 data.token
 * @Author: zhiwei.Wang
 * @Date: 2024-08-16 10:41
 */
export declare const setPayNumber: (orderId: string, payNumber: string, token?: string) => Promise<void>;
/**
 * @title: 清除服务端暂存
 * @description:
 * @param {string} orderId
 * @return {*}
 */
export declare const clearStashPayGroup: (orderId: string) => Promise<void>;
