import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { GustoEmbeddedError } from "../models/errors/gustoembeddederror.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { NotFoundErrorObject } from "../models/errors/notfounderrorobject.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { GetV1CompaniesAttachmentUrlHeaderXGustoAPIVersion, GetV1CompaniesAttachmentUrlRequest } from "../models/operations/getv1companiesattachmenturl.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildCompanyAttachmentGetDownloadUrlQuery, CompanyAttachmentGetDownloadUrlQueryData, prefetchCompanyAttachmentGetDownloadUrl, queryKeyCompanyAttachmentGetDownloadUrl } from "./companyAttachmentGetDownloadUrl.core.js"; export { buildCompanyAttachmentGetDownloadUrlQuery, type CompanyAttachmentGetDownloadUrlQueryData, prefetchCompanyAttachmentGetDownloadUrl, queryKeyCompanyAttachmentGetDownloadUrl, }; export type CompanyAttachmentGetDownloadUrlQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get a temporary url to download the Company Attachment file * * @remarks * Retrieve a temporary url to download an attachment file uploaded by the company. * * ### Related guides * - [Manage company attachments](doc:manage-company-attachments) * * scope: `company_attachments:read` */ export declare function useCompanyAttachmentGetDownloadUrl(request: GetV1CompaniesAttachmentUrlRequest, options?: QueryHookOptions): UseQueryResult; /** * Get a temporary url to download the Company Attachment file * * @remarks * Retrieve a temporary url to download an attachment file uploaded by the company. * * ### Related guides * - [Manage company attachments](doc:manage-company-attachments) * * scope: `company_attachments:read` */ export declare function useCompanyAttachmentGetDownloadUrlSuspense(request: GetV1CompaniesAttachmentUrlRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setCompanyAttachmentGetDownloadUrlData(client: QueryClient, queryKeyBase: [ companyId: string, companyAttachmentUuid: string, parameters: { xGustoAPIVersion?: GetV1CompaniesAttachmentUrlHeaderXGustoAPIVersion | undefined; } ], data: CompanyAttachmentGetDownloadUrlQueryData): CompanyAttachmentGetDownloadUrlQueryData | undefined; export declare function invalidateCompanyAttachmentGetDownloadUrl(client: QueryClient, queryKeyBase: TupleToPrefixes<[ companyId: string, companyAttachmentUuid: string, parameters: { xGustoAPIVersion?: GetV1CompaniesAttachmentUrlHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllCompanyAttachmentGetDownloadUrl(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=companyAttachmentGetDownloadUrl.d.ts.map