import React from 'react'; import { PayStatus } from '../const'; import XhrTimer from './timer'; /** * @title: windcave 支付,退款,查询 错误逻辑处理 * @description: 动态步骤页 异常前往 FailCustom 页面 * @return null * @Author: hongbing.wang * @Date: 2024-08-12 10:29 */ export declare const useFail: () => (res: { code?: `${PayStatus}`; }, isMark?: boolean) => void; /** * @title: 轮询 check 接口 * @description: 轮询 终止条件 1.超时 , 2. 返回非200状态码 , 3. 外部关闭 * @return [run, XhrTimer] run: 启动函数 , XhrTimer 轮询类 * @Author: hongbing.wang * @Date: 2024-08-12 10:30 */ export declare const useValidate: (check: (...agrn: unknown[]) => Promise, num: number, onChange: (params: { [key: string]: unknown; }) => unknown) => readonly [(timeout?: number) => void, React.MutableRefObject<((res: any, isRun?: boolean) => unknown) | undefined>, React.MutableRefObject];