import type { FetchArgs, FetchBaseQueryError, FetchBaseQueryMeta, QueryReturnValue } from '@reduxjs/toolkit/query'; import type { ActionTypes } from './request-mware.derived.js'; export type RequestMiddleware = (req: ModifiedFetchArgs, action: Action, next: () => ModifiedFetchArgs) => void; export interface QueryApi { applyMiddleware(middleware: RequestMiddleware[]): QueryApi; applyQuery(callback: (request: FetchArgs) => Promise>): Promise>; } export interface Action { type: Type; payload: Payload; } export interface ModifiedFetchArgs extends Omit { url: URL; headers: Headers; } export interface RequestObj { url: URL; init: RequestInit; } //# sourceMappingURL=request-mware.types.d.ts.map