import type { DocumentNode, FormattedExecutionResult, GraphQLFormattedError } from "graphql"; import type { ApolloLink } from "@apollo/client/link"; import type { DeepPartial } from "@apollo/client/utilities"; export declare namespace Incremental { type Path = ReadonlyArray; /** * @internal * * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time. */ interface Handler = Record> { isIncrementalResult: (result: ApolloLink.Result) => result is Chunk; prepareRequest: (request: ApolloLink.Request) => ApolloLink.Request; extractErrors: (result: ApolloLink.Result) => readonly GraphQLFormattedError[] | undefined | void; startRequest: >(request: { query: DocumentNode; }) => IncrementalRequest; } interface IncrementalRequest, TData> { hasNext: boolean; handle: (cacheData: TData | DeepPartial | undefined | null, chunk: Chunk) => FormattedExecutionResult; } /** * @internal * * @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time. */ interface StreamFieldInfo { isFirstChunk: boolean; isLastChunk: boolean; } } //# sourceMappingURL=types.d.ts.map