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 { PutV1GarnishmentsGarnishmentIdRequest, PutV1GarnishmentsGarnishmentIdResponse } from "../models/operations/putv1garnishmentsgarnishmentid.js"; import { MutationHookOptions } from "./_types.js"; export type GarnishmentsUpdateMutationVariables = { request: PutV1GarnishmentsGarnishmentIdRequest; options?: RequestOptions; }; export type GarnishmentsUpdateMutationData = PutV1GarnishmentsGarnishmentIdResponse; export type GarnishmentsUpdateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Update a garnishment * * @remarks * Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments. * * scope: `garnishments:write` */ export declare function useGarnishmentsUpdateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyGarnishmentsUpdate(): MutationKey; export declare function buildGarnishmentsUpdateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: GarnishmentsUpdateMutationVariables) => Promise; }; //# sourceMappingURL=garnishmentsUpdate.d.ts.map