import { default as EventEmitter } from 'events'; import { RequestEventType, RequestLoadingEventType, RequestProgressEventType, RequestResponseEventType, RequestRemovedEventType, RequestDeduplicatedEventType } from '..'; import { AdapterInstance } from '../../adapter'; import { RequestInstance } from '../../request'; import { Client } from '../../client'; import { ExtendRequest } from '../../types'; export declare const getRequestManagerEvents: (emitter: EventEmitter) => { /** * Emiter */ emitDeduplicated: (data: RequestDeduplicatedEventType, isTriggeredExternally?: boolean) => void; emitLoading: (data: RequestLoadingEventType, isTriggeredExternally?: boolean) => void; emitRequestStart: (data: RequestEventType, isTriggeredExternally?: boolean) => void; emitResponseStart: (data: RequestEventType, isTriggeredExternally?: boolean) => void; emitUploadProgress: (data: RequestProgressEventType, isTriggeredExternally?: boolean) => void; emitDownloadProgress: (data: RequestProgressEventType, isTriggeredExternally?: boolean) => void; emitResponse: (data: RequestResponseEventType; }>>, isTriggeredExternally?: boolean) => void; emitAbort: (data: RequestEventType, isTriggeredExternally?: boolean) => void; emitRemove: (data: RequestRemovedEventType, isTriggeredExternally?: boolean) => void; /** * Listeners */ onDeduplicated: (callback: (data: RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedByQueue: (queryKey: string, callback: (data: RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedByCache: (cacheKey: string, callback: (data: RequestDeduplicatedEventType) => void) => VoidFunction; onDeduplicatedById: (requestId: string, callback: (data: RequestDeduplicatedEventType) => void) => VoidFunction; onLoading: (callback: (data: RequestLoadingEventType) => void) => VoidFunction; onLoadingByQueue: (queryKey: string, callback: (data: RequestLoadingEventType) => void) => VoidFunction; onLoadingByCache: (cacheKey: string, callback: (data: RequestLoadingEventType) => void) => VoidFunction; onLoadingById: (requestId: string, callback: (data: RequestLoadingEventType) => void) => VoidFunction; onRequestStart: (callback: (details: RequestEventType) => void) => VoidFunction; onRequestStartByQueue: (queryKey: string, callback: (details: RequestEventType) => void) => VoidFunction; onRequestStartById: (requestId: string, callback: (details: RequestEventType) => void) => VoidFunction; onResponseStart: (callback: (details: RequestEventType) => void) => VoidFunction; onResponseStartByQueue: (queryKey: string, callback: (details: RequestEventType) => void) => VoidFunction; onResponseStartById: (requestId: string, callback: (details: RequestEventType) => void) => VoidFunction; onUploadProgress: (callback: (data: RequestProgressEventType) => void) => VoidFunction; onUploadProgressByQueue: (queryKey: string, callback: (data: RequestProgressEventType) => void) => VoidFunction; onUploadProgressById: (requestId: string, callback: (data: RequestProgressEventType) => void) => VoidFunction; onDownloadProgress: (callback: (data: RequestProgressEventType) => void) => VoidFunction; onDownloadProgressByQueue: (queryKey: string, callback: (data: RequestProgressEventType) => void) => VoidFunction; onDownloadProgressById: (requestId: string, callback: (data: RequestProgressEventType) => void) => VoidFunction; onResponse: (callback: (data: RequestResponseEventType) => void) => VoidFunction; onResponseByCache: (cacheKey: string, callback: (data: RequestResponseEventType) => void) => VoidFunction; onResponseById: (requestId: string, callback: (data: RequestResponseEventType) => void) => VoidFunction; onAbort: (callback: (request: RequestEventType) => void) => VoidFunction; onAbortByKey: (abortKey: string, callback: (request: RequestEventType) => void) => VoidFunction; onAbortById: (requestId: string, callback: (data: RequestEventType) => void) => VoidFunction; onRemove: (callback: (data: RequestRemovedEventType) => void) => VoidFunction; onRemoveByQueue: (queryKey: string, callback: (data: RequestRemovedEventType) => void) => VoidFunction; onRemoveById: (requestId: string, callback: (data: RequestRemovedEventType) => void) => VoidFunction; }; //# sourceMappingURL=request.manager.events.d.ts.map