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 { PayrollDigestConflictError } from "../models/errors/payrolldigestconflicterror.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { UnprocessableEntityError } from "../models/errors/unprocessableentityerror.js"; import { PostV1PayrollDigestsRequest, PostV1PayrollDigestsResponse, PostV1PayrollDigestsSecurity } from "../models/operations/postv1payrolldigests.js"; import { MutationHookOptions } from "./_types.js"; export type PayrollDigestsPostV1PayrollDigestsMutationVariables = { security: PostV1PayrollDigestsSecurity; request: PostV1PayrollDigestsRequest; options?: RequestOptions; }; export type PayrollDigestsPostV1PayrollDigestsMutationData = PostV1PayrollDigestsResponse; export type PayrollDigestsPostV1PayrollDigestsMutationError = PayrollDigestConflictError | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create a payroll digest batch * * @remarks * Triggers an asynchronous computation of payroll digest data (statuses, blockers, pay periods, totals) across up to 25 companies that the partner is mapped to. * * The batch is processed asynchronously. Use the returned batch UUID to poll `GET /v1/payroll_digests/{payroll_digest_uuid}` for status and results. * * Idempotency is scoped per `(partner, idempotency_key)`. A duplicate POST with the same `idempotency_key` returns a 409 Conflict referencing the existing batch UUID — no duplicate computation occurs. * * 📘 System Access Authentication * * This endpoint uses the [Bearer Auth scheme with the system-level access token in the HTTP Authorization header](https://docs.gusto.com/embedded-payroll/docs/system-access) * * scope: `payroll_digests:write` */ export declare function usePayrollDigestsPostV1PayrollDigestsMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyPayrollDigestsPostV1PayrollDigests(): MutationKey; export declare function buildPayrollDigestsPostV1PayrollDigestsMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: PayrollDigestsPostV1PayrollDigestsMutationVariables) => Promise; }; //# sourceMappingURL=payrollDigestsPostV1PayrollDigests.d.ts.map