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 { PutV1CompaniesCompanyIdPayrollsRequest, PutV1CompaniesCompanyIdPayrollsResponse } from "../models/operations/putv1companiescompanyidpayrolls.js"; import { MutationHookOptions } from "./_types.js"; export type PayrollsUpdateMutationVariables = { request: PutV1CompaniesCompanyIdPayrollsRequest; options?: RequestOptions; }; export type PayrollsUpdateMutationData = PutV1CompaniesCompanyIdPayrollsResponse; export type PayrollsUpdateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Update a payroll by ID * * @remarks * This endpoint allows you to update information for one or more employees for a specific **unprocessed** payroll. You can think of the **unprocessed** * payroll object as a template of fields that you can update. You cannot modify the structure of the payroll object through this endpoint, only values * of the fields included in the payroll. If you do not include specific employee compensations, fixed/hourly compensations, or deductions in your request body, they * will not be removed from the payroll. A maximum of 100 employee_compensations can be updated at a time. Only the employee compensation objects that were * inputted will be returned. * * scope: `payrolls:write` */ export declare function usePayrollsUpdateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyPayrollsUpdate(): MutationKey; export declare function buildPayrollsUpdateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: PayrollsUpdateMutationVariables) => Promise; }; //# sourceMappingURL=payrollsUpdate.d.ts.map