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 { PostV1EmployeesEmployeeIdBankAccountsRequest, PostV1EmployeesEmployeeIdBankAccountsResponse } from "../models/operations/postv1employeesemployeeidbankaccounts.js"; import { MutationHookOptions } from "./_types.js"; export type EmployeePaymentMethodCreateMutationVariables = { request: PostV1EmployeesEmployeeIdBankAccountsRequest; options?: RequestOptions; }; export type EmployeePaymentMethodCreateMutationData = PostV1EmployeesEmployeeIdBankAccountsResponse; export type EmployeePaymentMethodCreateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create an employee bank account * * @remarks * Creates an employee bank account. An employee can have multiple bank accounts. Note that creating an employee bank account will also update the employee's payment method. * * scope: `employee_payment_methods:write` */ export declare function useEmployeePaymentMethodCreateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyEmployeePaymentMethodCreate(): MutationKey; export declare function buildEmployeePaymentMethodCreateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: EmployeePaymentMethodCreateMutationVariables) => Promise; }; //# sourceMappingURL=employeePaymentMethodCreate.d.ts.map