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 { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { MutationHookOptions } from "./_types.js"; export type ClientAgentsRunMutationVariables = { request: components.AgentRunCreate; options?: RequestOptions; }; export type ClientAgentsRunMutationData = components.AgentRunWaitResponse; export type ClientAgentsRunMutationError = GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create an agent run and wait for the response * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **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 useClientAgentsRunMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyClientAgentsRun(): MutationKey; export declare function buildClientAgentsRunMutation(client$: GleanCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: ClientAgentsRunMutationVariables) => Promise; }; //# sourceMappingURL=clientAgentsRun.d.ts.map