import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; 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 { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { AgentRunsStreamAgentRunEventsQueryData, buildAgentRunsStreamAgentRunEventsQuery, prefetchAgentRunsStreamAgentRunEvents, queryKeyAgentRunsStreamAgentRunEvents } from "./agentRunsStreamAgentRunEvents.core.js"; export { type AgentRunsStreamAgentRunEventsQueryData, buildAgentRunsStreamAgentRunEventsQuery, prefetchAgentRunsStreamAgentRunEvents, queryKeyAgentRunsStreamAgentRunEvents, }; export type AgentRunsStreamAgentRunEventsQueryError = errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Stream agent run events * * @remarks * Streams Server-Sent Events for the gateway response linked to this agent run. Terminal runs emit a single terminal event and close. */ export declare function useAgentRunsStreamAgentRunEvents(request: operations.StreamAgentRunEventsRequest, options?: QueryHookOptions): UseQueryResult; /** * Stream agent run events * * @remarks * Streams Server-Sent Events for the gateway response linked to this agent run. Terminal runs emit a single terminal event and close. */ export declare function useAgentRunsStreamAgentRunEventsSuspense(request: operations.StreamAgentRunEventsRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setAgentRunsStreamAgentRunEventsData(client: QueryClient, queryKeyBase: [ agentId: string, runId: string, parameters: { xOnBehalfOf?: string | undefined; } ], data: AgentRunsStreamAgentRunEventsQueryData): AgentRunsStreamAgentRunEventsQueryData | undefined; export declare function invalidateAgentRunsStreamAgentRunEvents(client: QueryClient, queryKeyBase: TupleToPrefixes<[ agentId: string, runId: string, parameters: { xOnBehalfOf?: string | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllAgentRunsStreamAgentRunEvents(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=agentRunsStreamAgentRunEvents.d.ts.map