import { a as NexusDefinitionConfig } from './definition-DCghXrsH.js'; import { N as NexusResponse } from './response-BnpAeVhJ.js'; interface InternalNexusRequestConfig extends NexusDefinitionConfig { body?: BodyInit | null; timeoutId?: NodeJS.Timeout; next?: NexusOptions; cache?: RequestCache; } interface InternalNexusResponse extends NexusResponse { config?: InternalNexusRequestConfig; request?: Request; clone(): InternalNexusResponse; } interface NexusOptions { revalidate?: number | false; tags?: string[]; } type InterceptorHandler = (value: T) => T | Promise; interface NexusRequestInterceptor { name: string; onFulfilled: InterceptorHandler; onRejected?: InterceptorHandler; } interface NexusResponseInterceptor { name: string; onFulfilled: InterceptorHandler>; onRejected?: InterceptorHandler; } interface NexusInterceptors { request: { use: (name: string, onFulfilled: NexusRequestInterceptor['onFulfilled'], onRejected?: NexusRequestInterceptor['onRejected']) => void; remove: (name: string) => void; getAll: () => NexusRequestInterceptor[]; get: (name: string) => NexusRequestInterceptor | undefined; }; response: { use: (name: string, onFulfilled: NexusResponseInterceptor['onFulfilled'], onRejected?: NexusResponseInterceptor['onRejected']) => void; getAll: () => NexusResponseInterceptor[]; remove: (name: string) => void; get: (name: string) => NexusResponseInterceptor | undefined; }; } export type { InternalNexusRequestConfig as I, NexusInterceptors as N, NexusRequestInterceptor as a, InternalNexusResponse as b, NexusResponseInterceptor as c };