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 { PutV1TerminationsEmployeeIdRequest, PutV1TerminationsEmployeeIdResponse } from "../models/operations/putv1terminationsemployeeid.js"; import { MutationHookOptions } from "./_types.js"; export type EmployeeEmploymentsUpdateTerminationMutationVariables = { request: PutV1TerminationsEmployeeIdRequest; options?: RequestOptions; }; export type EmployeeEmploymentsUpdateTerminationMutationData = PutV1TerminationsEmployeeIdResponse; export type EmployeeEmploymentsUpdateTerminationMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Update an employee termination * * @remarks * Terminations are created whenever an employee is scheduled to leave the company. The only things required are an effective date (their last day of work) and whether they should receive their wages in a one-off termination payroll or with the rest of the company. * * Note that some states require employees to receive their final wages within 24 hours (unless they consent otherwise,) in which case running a one-off payroll may be the only option. * * scope: `employments:write` */ export declare function useEmployeeEmploymentsUpdateTerminationMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyEmployeeEmploymentsUpdateTermination(): MutationKey; export declare function buildEmployeeEmploymentsUpdateTerminationMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: EmployeeEmploymentsUpdateTerminationMutationVariables) => Promise; }; //# sourceMappingURL=employeeEmploymentsUpdateTermination.d.ts.map