import { AdapterInstance, ProgressType, RequestResponseType, ResponseType } from '../adapter'; import { Dispatcher } from '../dispatcher'; import { ExtractAdapterType } from '../types'; import { ProgressEventType, RequestInstance, RequestJSON, RequestSendOptionsType } from './request.types'; export declare const scopeKey: (key: string, scope: string | null) => string; export declare const stringifyKey: (value: unknown) => string; export declare const getProgressValue: ({ loaded, total }: ProgressEventType) => number; export declare const getRequestEta: (startDate: Date, progressDate: Date, { total, loaded }: ProgressEventType) => { sizeLeft: number; timeLeft: number | null; }; export declare const getProgressData: (requestStartTime: Date, progressDate: Date, progressEvent: ProgressEventType) => ProgressType; export declare const getSimpleKey: (request: RequestInstance | RequestJSON) => string; /** * Cache instance for individual request that collects individual requests responses from * the same endpoint (they may differ base on the custom key, endpoint params etc) * @param request * @param useInitialValues * @returns */ export declare const getRequestKey: (request: RequestInstance | RequestJSON, useInitialValues?: boolean) => string; export declare const getRequestDispatcher: (request: Request, dispatcherType?: "auto" | "fetch" | "submit") => [Dispatcher>, isFetchDispatcher: boolean]; export declare const mapResponseForSend: (request: Request, response: ResponseType) => Promise>; export declare const sendRequest: (request: Request, options?: RequestSendOptionsType) => Promise>; //# sourceMappingURL=request.utils.d.ts.map