import type { AxiosInstance, AxiosError } from 'axios'; import Authorizer from "./authorizer"; import Config from "../../core/config"; export default class PendingQueue { _queue: { error: AxiosError; resolve: (arg: any) => void; reject: (arg: any) => void; }[]; _authorizer: Authorizer; _config: Config; _minTryRetryInterval: number; _maxTryRetryInterval: number; _retryTimes: number; _resendAxiosInstance: AxiosInstance | null; /** * @param {Authorizer} authorizer * @param {Config} config * @param {number} minTryRetryInterval * @param {number} maxTryRetryInterval * @param retryTimes */ constructor(authorizer: Authorizer, config: Config, minTryRetryInterval?: number, maxTryRetryInterval?: number, retryTimes?: number); resend(error: AxiosError, retries?: number): Promise; push(error: AxiosError): Promise; pop(): void; clear(): void; get size(): number; }