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 { PostPayrollsGrossUpPayrollUuidRequest, PostPayrollsGrossUpPayrollUuidResponse } from "../models/operations/postpayrollsgrossuppayrolluuid.js"; import { MutationHookOptions } from "./_types.js"; export type PayrollsCalculateGrossUpMutationVariables = { request: PostPayrollsGrossUpPayrollUuidRequest; options?: RequestOptions; }; export type PayrollsCalculateGrossUpMutationData = PostPayrollsGrossUpPayrollUuidResponse; export type PayrollsCalculateGrossUpMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Calculate gross up for a payroll * * @remarks * Calculates gross up earnings for an employee's payroll, given net earnings. This endpoint is only applicable to off-cycle unprocessed payrolls. * * The gross up amount must then be mapped to the corresponding fixed compensation earning type to get the correct payroll amount. For example, for bonus off-cycles, the gross up amount should be set with the Bonus earning type in the payroll `fixed_compensations` field. * * scope: `payrolls:run` */ export declare function usePayrollsCalculateGrossUpMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyPayrollsCalculateGrossUp(): MutationKey; export declare function buildPayrollsCalculateGrossUpMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: PayrollsCalculateGrossUpMutationVariables) => Promise; }; //# sourceMappingURL=payrollsCalculateGrossUp.d.ts.map