import { MutationKey, UseMutationResult } from "@tanstack/react-query"; import { SDKCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.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 { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { MutationHookOptions } from "./_types.js"; export type AgentRunsCreateAgentRunMutationVariables = { request: operations.CreateAgentRunRequest; options?: RequestOptions; }; export type AgentRunsCreateAgentRunMutationData = components.AgentRun; export type AgentRunsCreateAgentRunMutationError = errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Start a saved agent run * * @remarks * Starts an asynchronous background run for a saved agent and returns the queued run record. Use the run retrieval endpoint to poll status or the events endpoint to stream progress. */ export declare function useAgentRunsCreateAgentRunMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyAgentRunsCreateAgentRun(): MutationKey; export declare function buildAgentRunsCreateAgentRunMutation(client$: SDKCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: AgentRunsCreateAgentRunMutationVariables) => Promise; }; //# sourceMappingURL=agentRunsCreateAgentRun.d.ts.map