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 { DeleteV1EmployeeBenefitsEmployeeBenefitIdRequest, DeleteV1EmployeeBenefitsEmployeeBenefitIdResponse } from "../models/operations/deletev1employeebenefitsemployeebenefitid.js"; import { MutationHookOptions } from "./_types.js"; export type EmployeeBenefitsDeleteMutationVariables = { request: DeleteV1EmployeeBenefitsEmployeeBenefitIdRequest; options?: RequestOptions; }; export type EmployeeBenefitsDeleteMutationData = DeleteV1EmployeeBenefitsEmployeeBenefitIdResponse; export type EmployeeBenefitsDeleteMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Delete an employee benefit * * @remarks * Employee benefits represent an employee enrolled in a particular company benefit. It includes information specific to that employee's enrollment. * * When the application has the `employee_benefits:write:benefit_type_limited` data scope, the application can only delete employee benefits for benefit types that are permitted for the application. * * scope: `employee_benefits:write` */ export declare function useEmployeeBenefitsDeleteMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyEmployeeBenefitsDelete(): MutationKey; export declare function buildEmployeeBenefitsDeleteMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: EmployeeBenefitsDeleteMutationVariables) => Promise; }; //# sourceMappingURL=employeeBenefitsDelete.d.ts.map