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 { PostV1ExternalPayrollRequest, PostV1ExternalPayrollResponse } from "../models/operations/postv1externalpayroll.js"; import { MutationHookOptions } from "./_types.js"; export type ExternalPayrollsCreateMutationVariables = { request: PostV1ExternalPayrollRequest; options?: RequestOptions; }; export type ExternalPayrollsCreateMutationData = PostV1ExternalPayrollResponse; export type ExternalPayrollsCreateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create an external payroll for a company * * @remarks * Creates a new external payroll for a company. * * scope: `external_payrolls:write` */ export declare function useExternalPayrollsCreateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyExternalPayrollsCreate(): MutationKey; export declare function buildExternalPayrollsCreateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: ExternalPayrollsCreateMutationVariables) => Promise; }; //# sourceMappingURL=externalPayrollsCreate.d.ts.map