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 { buildSandboxDownloadFileQuery, prefetchSandboxDownloadFile, queryKeySandboxDownloadFile, SandboxDownloadFileQueryData } from "./sandboxDownloadFile.core.js"; export { buildSandboxDownloadFileQuery, prefetchSandboxDownloadFile, queryKeySandboxDownloadFile, type SandboxDownloadFileQueryData, }; export type SandboxDownloadFileQueryError = errors.HTTPValidationError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Download Workspace File * * @remarks * Download raw bytes from a file in the session workspace. */ export declare function useSandboxDownloadFile(request: operations.DownloadWorkspaceFileRequest, options?: QueryHookOptions): UseQueryResult; /** * Download Workspace File * * @remarks * Download raw bytes from a file in the session workspace. */ export declare function useSandboxDownloadFileSuspense(request: operations.DownloadWorkspaceFileRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setSandboxDownloadFileData(client: QueryClient, queryKeyBase: [ sessionId: string, filePath: string, parameters: { sessionToken?: string | null | undefined; xOnBehalfOf?: string | undefined; } ], data: SandboxDownloadFileQueryData): SandboxDownloadFileQueryData | undefined; export declare function invalidateSandboxDownloadFile(client: QueryClient, queryKeyBase: TupleToPrefixes<[ sessionId: string, filePath: string, parameters: { sessionToken?: string | null | undefined; xOnBehalfOf?: string | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllSandboxDownloadFile(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=sandboxDownloadFile.d.ts.map