import { EventEmitter } from '../../utils'; /** * **Request Manager** is used to emit `request lifecycle events` like - request start, request end, upload and download progress. * It is also the place of `request aborting` system, here we store all the keys and controllers that are isolated for each client instance. */ export declare class RequestManager { emitter: EventEmitter; events: { emitDeduplicated: (data: import('..').RequestDeduplicatedEventType, isTriggeredExternally?: boolean) => void; emitLoading: (data: import('..').RequestLoadingEventType, isTriggeredExternally?: boolean) => void; emitRequestStart: (data: import('..').RequestEventType, isTriggeredExternally?: boolean) => void; emitResponseStart: (data: import('..').RequestEventType, isTriggeredExternally?: boolean) => void; emitUploadProgress: (data: import('..').RequestProgressEventType, isTriggeredExternally?: boolean) => void; emitDownloadProgress: (data: import('..').RequestProgressEventType, isTriggeredExternally?: boolean) => void; emitResponse: (data: import('..').RequestResponseEventType; }>>, isTriggeredExternally?: boolean) => void; emitAbort: (data: import('..').RequestEventType, isTriggeredExternally?: boolean) => void; emitRemove: (data: import('..').RequestRemovedEventType, isTriggeredExternally?: boolean) => void; onDeduplicated: (callback: (data: import('..').RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedByQueue: (queryKey: string, callback: (data: import('..').RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedByCache: (cacheKey: string, callback: (data: import('..').RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedById: (requestId: string, callback: (data: import('..').RequestDeduplicatedEventType) => void) => VoidFunction; onLoading: (callback: (data: import('..').RequestLoadingEventType) => void) => VoidFunction; onLoadingByQueue: (queryKey: string, callback: (data: import('..').RequestLoadingEventType) => void) => VoidFunction; onLoadingByCache: (cacheKey: string, callback: (data: import('..').RequestLoadingEventType) => void) => VoidFunction; onLoadingById: (requestId: string, callback: (data: import('..').RequestLoadingEventType) => void) => VoidFunction; onRequestStart: (callback: (details: import('..').RequestEventType) => void) => VoidFunction; onRequestStartByQueue: (queryKey: string, callback: (details: import('..').RequestEventType) => void) => VoidFunction; onRequestStartById: (requestId: string, callback: (details: import('..').RequestEventType) => void) => VoidFunction; onResponseStart: (callback: (details: import('..').RequestEventType) => void) => VoidFunction; onResponseStartByQueue: (queryKey: string, callback: (details: import('..').RequestEventType) => void) => VoidFunction; onResponseStartById: (requestId: string, callback: (details: import('..').RequestEventType) => void) => VoidFunction; onUploadProgress: (callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onUploadProgressByQueue: (queryKey: string, callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onUploadProgressById: (requestId: string, callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onDownloadProgress: (callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onDownloadProgressByQueue: (queryKey: string, callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onDownloadProgressById: (requestId: string, callback: (data: import('..').RequestProgressEventType) => void) => VoidFunction; onResponse: (callback: (data: import('..').RequestResponseEventType) => void) => VoidFunction; onResponseByCache: (cacheKey: string, callback: (data: import('..').RequestResponseEventType) => void) => VoidFunction; onResponseById: (requestId: string, callback: (data: import('..').RequestResponseEventType) => void) => VoidFunction; onAbort: (callback: (request: import('..').RequestEventType) => void) => VoidFunction; onAbortByKey: (abortKey: string, callback: (request: import('..').RequestEventType) => void) => VoidFunction; onAbortById: (requestId: string, callback: (data: import('..').RequestEventType) => void) => VoidFunction; onRemove: (callback: (data: import('..').RequestRemovedEventType) => void) => VoidFunction; onRemoveByQueue: (queryKey: string, callback: (data: import('..').RequestRemovedEventType) => void) => VoidFunction; onRemoveById: (requestId: string, callback: (data: import('..').RequestRemovedEventType) => void) => VoidFunction; }; constructor(); abortControllers: Map>; addAbortController: (abortKey: string, requestId: string) => void; getAbortController: (abortKey: string, requestId: string) => AbortController | undefined; removeAbortController: (abortKey: string, requestId: string) => void; useAbortController: (abortKey: string, requestId: string) => void; abortByKey: (abortKey: string) => void; abortByRequestId: (abortKey: string, requestId: string) => void; abortAll: () => void; } //# sourceMappingURL=request.manager.d.ts.map