import { MutationKey, UseMutationResult } from "@tanstack/react-query"; import { GustoEmbeddedCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; 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 { UnprocessableEntityError } from "../models/errors/unprocessableentityerror.js"; import { PostV1CompaniesAttachmentRequest, PostV1CompaniesAttachmentResponse } from "../models/operations/postv1companiesattachment.js"; import { MutationHookOptions } from "./_types.js"; export type CompanyAttachmentsCreateMutationVariables = { request: PostV1CompaniesAttachmentRequest; options?: RequestOptions; }; export type CompanyAttachmentsCreateMutationData = PostV1CompaniesAttachmentResponse; export type CompanyAttachmentsCreateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create Company Attachment and Upload File * * @remarks * Upload a file and create a company attachment. We recommend uploading PDF files for optimal compatibility. However, the following file types are allowed: .qbb, .qbm, .gif, .jpg, .png, .pdf, .xls, .xlsx, .doc and .docx. * * ### Related guides * - [Manage company attachments](doc:manage-company-attachments) * * scope: `company_attachments:write` */ export declare function useCompanyAttachmentsCreateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyCompanyAttachmentsCreate(): MutationKey; export declare function buildCompanyAttachmentsCreateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: CompanyAttachmentsCreateMutationVariables) => Promise; }; //# sourceMappingURL=companyAttachmentsCreate.d.ts.map