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 { PostV1CompaniesCompanyIdEarningTypesRequest, PostV1CompaniesCompanyIdEarningTypesResponse } from "../models/operations/postv1companiescompanyidearningtypes.js"; import { MutationHookOptions } from "./_types.js"; export type EarningTypesCreateMutationVariables = { request: PostV1CompaniesCompanyIdEarningTypesRequest; options?: RequestOptions; }; export type EarningTypesCreateMutationData = PostV1CompaniesCompanyIdEarningTypesResponse; export type EarningTypesCreateMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Create a custom earning type * * @remarks * Create a custom earning type. * * If an inactive earning type exists with the same name, this will reactivate it instead of creating a new one. * * scope: `payrolls:write` */ export declare function useEarningTypesCreateMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyEarningTypesCreate(): MutationKey; export declare function buildEarningTypesCreateMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: EarningTypesCreateMutationVariables) => Promise; }; //# sourceMappingURL=earningTypesCreate.d.ts.map