import type { Nullish } from './utils/null'; export interface HeadersInitEsque { [Symbol.iterator](): IterableIterator<[string, string]>; } export type HTTPHeaders = HeadersInitEsque | Record; export type AbortControllerEsque = new () => AbortControllerInstanceEsque; /** * Allows you to abort one or more requests. */ export interface AbortControllerInstanceEsque { /** * The AbortSignal object associated with this object. */ readonly signal: AbortSignal; /** * Sets this object's AbortSignal's aborted flag and signals to * any observers that the associated activity is to be aborted. */ abort(): void; } export type HTTPLinkBaseOptions = { /** * Define AbortController implementation. */ AbortController?: AbortControllerEsque | null; /** * Send all requests `as POST`s requests regardless of the procedure type. * The HTTP handler must separately allow overriding the method. * * @see https://trpc.io/docs/rpc */ methodOverride?: 'POST'; }; export declare function getAbortController(abortControllerPolyfill?: AbortControllerEsque | Nullish): AbortControllerEsque | null; export declare const httpQueryMethods: readonly ["get", "options", "head"]; export declare const httpMutationMethods: readonly ["post", "put", "patch", "delete"]; export declare const httpSubscriptionMethods: readonly ["connect", "subscribe"]; export declare const httpMethods: readonly ["get", "options", "head", "post", "put", "patch", "delete", "connect", "subscribe"]; /** * Recognized HTTP methods for queries. */ export type HttpQueryMethod = (typeof httpQueryMethods)[number]; /** * Recognized HTTP methods for mutations. */ export type HttpMutationMethod = (typeof httpMutationMethods)[number]; /** * Recognized HTTP methods for subscriptions. */ export type HttpSubscriptionMethod = (typeof httpSubscriptionMethods)[number]; /** * All recognized HTTP methods. */ export type HttMethod = (typeof httpMethods)[number]; //# sourceMappingURL=http.d.ts.map