import { AnyAction, AsyncThunk, Middleware, ThunkDispatch } from '@reduxjs/toolkit'; import { RootState } from './apiState'; import { Api, ApiContext } from '../apiTypes'; import { MutationThunkArg, QueryThunkArg, ThunkResult } from './buildThunks'; import { AssertTagTypes, EndpointDefinitions, FullTagDescription } from '../endpointDefinitions'; export declare function buildMiddleware({ reducerPath, context, context: { endpointDefinitions }, queryThunk, mutationThunk, api, assertTagType, }: { reducerPath: ReducerPath; context: ApiContext; queryThunk: AsyncThunk, {}>; mutationThunk: AsyncThunk, {}>; api: Api; assertTagType: AssertTagTypes; }): { middleware: Middleware<{}, RootState, ThunkDispatch>; actions: { invalidateTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<(TagTypes | FullTagDescription)[], string>; }; }; //# sourceMappingURL=buildMiddleware.d.ts.map