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 { DeleteV1CompaniesCompanyIdBankAccountsBankAccountIdRequest, DeleteV1CompaniesCompanyIdBankAccountsBankAccountIdResponse } from "../models/operations/deletev1companiescompanyidbankaccountsbankaccountid.js"; import { MutationHookOptions } from "./_types.js"; export type BankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutationVariables = { request: DeleteV1CompaniesCompanyIdBankAccountsBankAccountIdRequest; options?: RequestOptions; }; export type BankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutationData = DeleteV1CompaniesCompanyIdBankAccountsBankAccountIdResponse; export type BankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Delete a company bank account * * @remarks * This endpoint disables a company bank account. * * A bank account cannot be disabled if it is used for any unprocessed payments. * * scope: `company_bank_accounts:write` */ export declare function useBankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyBankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountId(): MutationKey; export declare function buildBankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: BankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountIdMutationVariables) => Promise; }; //# sourceMappingURL=bankAccountsDeleteV1CompaniesCompanyIdBankAccountsBankAccountId.d.ts.map