type Nullish = null | undefined | void; interface HeadersInitEsque { [Symbol.iterator](): IterableIterator<[string, string]>; } type HTTPHeaders = HeadersInitEsque | Record; type AbortControllerEsque = new () => AbortControllerInstanceEsque; /** * Allows you to abort one or more requests. */ 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; } 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'; }; declare function getAbortController(abortControllerPolyfill?: AbortControllerEsque | Nullish): AbortControllerEsque | null; declare const httpQueryMethods: readonly ["get", "options", "head"]; declare const httpMutationMethods: readonly ["post", "put", "patch", "delete"]; declare const httpSubscriptionMethods: readonly ["connect", "subscribe"]; declare const httpMethods: readonly ["get", "options", "head", "post", "put", "patch", "delete", "connect", "subscribe"]; /** * Recognized HTTP methods for queries. */ type HttpQueryMethod = (typeof httpQueryMethods)[number]; /** * Recognized HTTP methods for mutations. */ type HttpMutationMethod = (typeof httpMutationMethods)[number]; /** * Recognized HTTP methods for subscriptions. */ type HttpSubscriptionMethod = (typeof httpSubscriptionMethods)[number]; /** * All recognized HTTP methods. */ type HttMethod = (typeof httpMethods)[number]; export { type AbortControllerEsque as A, type HTTPHeaders as H, type Nullish as N, type HeadersInitEsque as a, type AbortControllerInstanceEsque as b, type HTTPLinkBaseOptions as c, httpMutationMethods as d, httpSubscriptionMethods as e, httpMethods as f, getAbortController as g, httpQueryMethods as h, type HttpQueryMethod as i, type HttpMutationMethod as j, type HttpSubscriptionMethod as k, type HttMethod as l };