import type { ExecutionResult } from "graphql"; import { Repeater } from "../repeater/index.js"; export type ExecutionLivePatchResult = { errors?: ExecutionResult["errors"]; data?: ExecutionResult["data"]; patch?: PatchPayload; revision?: number; extensions?: ExecutionResult["extensions"]; }; export type ApplyPatchFunction = (previous: Record, patch: PatchPayload) => Record; /** * Create a middleware generator function for applying live query patches on the client. */ export declare const createApplyLiveQueryPatch: (applyPatch: ApplyPatchFunction) => >(source: AsyncIterable) => Repeater;