import { GenericObject } from './object'; import { Response } from './response'; export interface RequestDetails { body: any; headers?: GenericObject; } export type ResponseDetails = RequestDetails | { error: string; }; export type RequestInterceptor = (details: RequestDetails) => ResponseDetails | Promise; export type ResponseInterceptor = (response: any) => Response | Response[] | Promise; //# sourceMappingURL=interceptors.d.ts.map