import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; 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 { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildClientAgentsRetrieveQuery, ClientAgentsRetrieveQueryData, prefetchClientAgentsRetrieve, queryKeyClientAgentsRetrieve } from "./clientAgentsRetrieve.core.js"; export { buildClientAgentsRetrieveQuery, type ClientAgentsRetrieveQueryData, prefetchClientAgentsRetrieve, queryKeyClientAgentsRetrieve, }; export type ClientAgentsRetrieveQueryError = errors.ErrorResponse | GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Retrieve an agent * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. */ export declare function useClientAgentsRetrieve(agentId: string, locale?: string | undefined, timezoneOffset?: number | undefined, options?: QueryHookOptions): UseQueryResult; /** * Retrieve an agent * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. */ export declare function useClientAgentsRetrieveSuspense(agentId: string, locale?: string | undefined, timezoneOffset?: number | undefined, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setClientAgentsRetrieveData(client: QueryClient, queryKeyBase: [ agentId: string, parameters: { locale?: string | undefined; timezoneOffset?: number | undefined; } ], data: ClientAgentsRetrieveQueryData): ClientAgentsRetrieveQueryData | undefined; export declare function invalidateClientAgentsRetrieve(client: QueryClient, queryKeyBase: TupleToPrefixes<[ agentId: string, parameters: { locale?: string | undefined; timezoneOffset?: number | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllClientAgentsRetrieve(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=clientAgentsRetrieve.d.ts.map