import type { FetchArgs, FetchBaseQueryError, FetchBaseQueryMeta, QueryReturnValue } from '@reduxjs/toolkit/query'; import type { ActionTypes, EndpointTypes } from './request-mware.derived.js'; import type { ModifiedFetchArgs, RequestMiddleware } from './request-mware.types.js'; /** * @function middlewareWrapper - A "Node" and "Redux" style middleware that is called just before * the request is made from the SDK. This allows you access to the request for modification. * @param request - A request object container of the URL and the Request Init object * @param action - The action object that is passed into the middleware communicating intent * @param action.type - A "Redux" style type that contains the serialized action * @param action.payload - The payload of the action that can contain metadata * @returns {function} - Function that takes middleware parameter & runs middleware against request */ export declare function middlewareWrapper(request: ModifiedFetchArgs, { type, payload }: { type: ActionTypes; payload?: any; }): (middleware: RequestMiddleware[] | undefined) => ModifiedFetchArgs; /** * @function initQuery - Initializes a query object with the provided request object * @param {FetchArgs} fetchArgs - The request object to initialize the query with * @param {string} endpoint - The endpoint to be used for the query * @returns */ export declare function initQuery(fetchArgs: FetchArgs, endpoint: EndpointTypes, payload?: Record): { applyMiddleware(middleware: RequestMiddleware[] | undefined): /*elided*/ any; applyQuery(callback: (request: FetchArgs) => Promise>): Promise>; }; //# sourceMappingURL=request-mware.effects.d.ts.map