/**
 * 取消当前支付流程中残留的 message 监听器和定时器，
 * 并 reject 挂起的 Promise 使 startPayment 的 await 结束。
 * reject 值为 0，startPayment catch 中 `if (err === 0) return` 会静默处理。
 */
export declare const cancelCurrentPayment: () => void;
interface PaymentOptions {
    callback?: (res: any) => void;
    isCancelled?: () => boolean;
    /** 引擎 token.get()，供 setPayNumber 写入 stash */
    stashAuthToken?: string;
}
/**
 * @title: 点击支付
 * @description:
 * @param {any} param1
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-22 10:05
 */
export declare const startPayment: ({ orderId, cardInfo, payData }: any, options?: PaymentOptions) => Promise<boolean | undefined>;
/**
 * @title: 前置检查 - 提交卡信息到后端（预检查版本）
 * @description: 与 checkEnrollment 调用相同 API，但不包含 Toast/callback/closeIframe 等副作用。
 *              失败时直接 throw error，由调用方（MWCreditCard）捕获并展示 3DS 错误弹窗。
 * @param {string} orderId 订单ID
 * @param {any} cardInfo 卡信息
 * @return {Promise<any>} 返回后端数据（含 pay_info），失败则 throw
 */
export declare const preCheckEnrollment: (orderId: string, cardInfo: any, stashAuthToken?: string) => Promise<any>;
/*******
 * @title: 步骤2
 * @description: 提交卡信息到后端
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 10:26
 */
export declare const checkEnrollment: (orderId: string, cardInfo: any, options?: PaymentOptions) => Promise<any>;
/**
 * @title: 步骤3
 * @description: 创建iframe, 监听
 * @param {any} threeDSMethodData
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 10:36
 */
export declare const createThreeDSMethodIframe: (threeDSMethodData: any, callback: any) => Promise<unknown>;
/**
 * @title: 步骤4
 * @description:
 * @param {any} param1
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 10:43
 */
export declare const checkTDSAuth: (step2: any, step3: any, options?: PaymentOptions) => Promise<any>;
/**
 * @title: 步骤5
 * @description:  监听
 * @param {any} challengeData
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 10:45
 */
export declare const createChallengeIframe: (challengeData: any, callback?: any) => Promise<unknown>;
/**
 * @title: 步骤6
 * @description:
 * @param {any} cres
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 10:48
 */
export declare const checkPARes: (step2: any, step4: any, step5: any) => Promise<any>;
/**
 * @title: 支付结束
 * @description:
 * @return {*}
 * @Author: Wzw
 * @Date: 2022-10-18 14:28
 */
export declare const paymentEnd: (props: any, callback: any) => void;
export {};
