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 { GetV1ContractorPaymentsContractorPaymentUuidFundRequest, GetV1ContractorPaymentsContractorPaymentUuidFundResponse } from "../models/operations/getv1contractorpaymentscontractorpaymentuuidfund.js"; import { MutationHookOptions } from "./_types.js"; export type ContractorPaymentsFundMutationVariables = { request: GetV1ContractorPaymentsContractorPaymentUuidFundRequest; options?: RequestOptions; }; export type ContractorPaymentsFundMutationData = GetV1ContractorPaymentsContractorPaymentUuidFundResponse; export type ContractorPaymentsFundMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Fund a contractor payment [DEMO] * * @remarks * > 🚧 Demo action * > * > This action is only available in the Demo environment * * Simulate funding a contractor payment. Funding only occurs automatically in the production environment when bank transactions are generated. Use this action in the demo environment to transition a contractor payment's `status` from `Unfunded` to `Funded`. A `Funded` status is required for generating a contractor payment receipt. * * scope: `payrolls:run` */ export declare function useContractorPaymentsFundMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyContractorPaymentsFund(): MutationKey; export declare function buildContractorPaymentsFundMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: ContractorPaymentsFundMutationVariables) => Promise; }; //# sourceMappingURL=contractorPaymentsFund.d.ts.map