import { MutationKey, UseMutationResult } from "@tanstack/react-query"; import { GleanCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { GleanBaseError } from "../models/errors/gleanbaseerror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAgentsRunStreamMutationVariables = { request: components.AgentRunCreate; options?: RequestOptions; }; export type ClientAgentsRunStreamMutationData = string; export type ClientAgentsRunStreamMutationError = errors.ErrorResponse | GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create an agent run and stream the response * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. */ export declare function useClientAgentsRunStreamMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyClientAgentsRunStream(): MutationKey; export declare function buildClientAgentsRunStreamMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: ClientAgentsRunStreamMutationVariables) => Promise; }; //# sourceMappingURL=clientAgentsRunStream.d.ts.map