Do not edit this file. It is a report generated by API Extractor.
import { ApolloLink } from '@apollo/client/link';
import type { ASTNode } from 'graphql';
import { ClientAwarenessLink } from '@apollo/client/link/client-awareness';
import type { print as print_2 } from '@apollo/client/utilities';
// @public (undocumented)
export class BaseHttpLink extends ApolloLink {
constructor(linkOptions?: HttpLink.Options);
}
// @public (undocumented)
export const checkFetcher: (fetcher: typeof fetch | undefined) => void;
// @public @deprecated (undocumented)
export const createHttpLink: (linkOptions?: HttpLink.Options & ClientAwarenessLink.Options) => HttpLink;
// @public @deprecated (undocumented)
export const createSignalIfSupported: () => {
controller: boolean;
signal: boolean;
} | {
controller: AbortController;
signal: AbortSignal;
};
// @public (undocumented)
export const defaultPrinter: HttpLink.Printer;
// @public (undocumented)
export const fallbackHttpConfig: {
http: HttpLink.HttpOptions;
headers: {
accept: string;
"content-type": string;
};
options: {
method: string;
};
};
// @public (undocumented)
interface HttpConfig {
// (undocumented)
credentials?: any;
// (undocumented)
headers?: Record<string, string>;
// (undocumented)
http?: HttpLink.HttpOptions;
// (undocumented)
options?: any;
}
// @public (undocumented)
export namespace HttpLink {
// (undocumented)
export interface Body {
// (undocumented)
extensions?: Record<string, any>;
// (undocumented)
operationName?: string;
// (undocumented)
query?: string;
// (undocumented)
variables?: Record<string, any>;
}
export interface ContextOptions {
credentials?: RequestCredentials;
fetchOptions?: RequestInit;
headers?: Record<string, string>;
http?: HttpLink.HttpOptions;
uri?: string | UriFunction;
}
export interface HttpOptions {
accept?: string[];
includeExtensions?: boolean;
includeQuery?: boolean;
preserveHeaderCase?: boolean;
}
export interface Options {
credentials?: string;
fetch?: typeof fetch;
fetchOptions?: any;
headers?: Record<string, string>;
includeExtensions?: boolean;
includeUnusedVariables?: boolean;
preserveHeaderCase?: boolean;
print?: Printer;
uri?: string | UriFunction;
useGETForQueries?: boolean;
}
// (undocumented)
export type Printer = (node: ASTNode, originalPrint: typeof print_2) => string;
// (undocumented)
export type UriFunction = (operation: ApolloLink.Operation) => string;
}
// @public (undocumented)
export class HttpLink extends ApolloLink {
constructor(options?: HttpLink.Options & ClientAwarenessLink.Options);
}
// @public (undocumented)
export function parseAndCheckHttpResponse(operations: ApolloLink.Operation | ApolloLink.Operation[]): (response: Response) => Promise<any>;
// @public (undocumented)
export function rewriteURIForGET(chosenURI: string, body: HttpLink.Body): {
parseError: unknown;
newURI?: undefined;
} | {
newURI: string;
parseError?: undefined;
};
// Warning: (ae-forgotten-export) The symbol "HttpConfig" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function selectHttpOptionsAndBody(operation: ApolloLink.Operation, fallbackConfig: HttpConfig, ...configs: Array<HttpConfig>): {
options: HttpConfig & Record<string, any>;
body: HttpLink.Body;
};
// @public (undocumented)
export function selectHttpOptionsAndBodyInternal(operation: ApolloLink.Operation, printer: HttpLink.Printer, ...configs: HttpConfig[]): {
options: HttpConfig & Record<string, any>;
body: HttpLink.Body;
};
// @public (undocumented)
export const selectURI: (operation: ApolloLink.Operation, fallbackURI?: string | ((operation: ApolloLink.Operation) => string)) => any;
// (No @packageDocumentation comment for this package)