/**
 * @title: 定时,轮询
 * @description:  双层 proxy , 1. 轮询 2. 定时 关闭轮询 ,特殊状态码,前端  701001 超时关闭 -1  外部用户关闭
 * @return null
 * @Author: hongbing.wang
 * @Date: 2024-08-12 11:25
 */
export default class XhrTimer {
    clearTimeout: number;
    isTimeoutClose: boolean;
    timeout: number;
    callback: (...agrn: unknown[]) => unknown;
    flag: boolean;
    run: any;
    abortController: AbortController;
    num: string;
    constructor({ xhr, timeout, callback, max, }: {
        xhr: (...agrn: unknown[]) => Promise<unknown>;
        timeout: number;
        callback: (...agrn: any[]) => unknown;
        max?: number;
    });
    /**
     * @title: 关闭 循环
     * @Author: hongbing.wang
     * @Date: 2024-08-20 12:48
     */
    close(): void;
}
