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 { PostV1CompaniesCompanyIdBankAccountsRequest, PostV1CompaniesCompanyIdBankAccountsResponse } from "../models/operations/postv1companiescompanyidbankaccounts.js"; import { MutationHookOptions } from "./_types.js"; export type BankAccountsCreateMutationVariables = { request: PostV1CompaniesCompanyIdBankAccountsRequest; options?: RequestOptions; }; export type BankAccountsCreateMutationData = PostV1CompaniesCompanyIdBankAccountsResponse; export type BankAccountsCreateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create a company bank account * * @remarks * This endpoint creates a new company bank account. * * Upon being created, two verification deposits are automatically sent to the bank account, and the bank account's verification_status is 'awaiting_deposits'. * * When the deposits are successfully transferred, the verification_status changes to 'ready_for_verification', at which point the verify endpoint can be used to verify the bank account. * After successful verification, the bank account's verification_status is 'verified'. * * >🚧 Warning * > * > If a default bank account exists, it will be disabled and the new bank account will replace it as the company's default funding method. * * scope: `company_bank_accounts:write` */ export declare function useBankAccountsCreateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyBankAccountsCreate(): MutationKey; export declare function buildBankAccountsCreateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: BankAccountsCreateMutationVariables) => Promise; }; //# sourceMappingURL=bankAccountsCreate.d.ts.map