import { ApolloLink, Observable } from "@apollo/client"; import type { OperationVariables } from "@apollo/client"; import type { FormattedExecutionResult } from "graphql"; import type { ManifestOperation } from "../types/application-manifest.js"; /** * @internal * Holds requests until the client is fully hydrated after a tool call. It is * particularly useful for `network-only` and `cache-and-network` fetch policies * where the request makes it to the link chain because it prevents a followup * tool call to the MCP server for the just fetched data from the MCP server. */ export declare class ToolHydrationLink extends ApolloLink { #private; hydrate(operation: ManifestOperation, { result, variables, }: { result: FormattedExecutionResult; variables: OperationVariables; }): void; complete(): void; request(operation: ApolloLink.Operation, forward: ApolloLink.ForwardFunction): Observable; } //# sourceMappingURL=ToolHydrationLink.d.ts.map