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 { PostPartnerManagedCompaniesCompanyUuidAcceptTermsOfServiceRequest, PostPartnerManagedCompaniesCompanyUuidAcceptTermsOfServiceResponse } from "../models/operations/postpartnermanagedcompaniescompanyuuidaccepttermsofservice.js"; import { MutationHookOptions } from "./_types.js"; export type CompaniesAcceptTermsOfServiceMutationVariables = { request: PostPartnerManagedCompaniesCompanyUuidAcceptTermsOfServiceRequest; options?: RequestOptions; }; export type CompaniesAcceptTermsOfServiceMutationData = PostPartnerManagedCompaniesCompanyUuidAcceptTermsOfServiceResponse; export type CompaniesAcceptTermsOfServiceMutationError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Accept terms of service for an admin * * @remarks * > Deprecated: use [POST /v1/partner_managed_companies/{company_uuid}/terms_of_service](https://docs.gusto.com/embedded-payroll/reference/post-v1-partner-managed-companies-company-uuid-terms_of_service). * * Accept the Gusto Embedded Payroll's [Terms of Service](https://flows.gusto.com/terms). * The user must be a company admin in order to accept the Terms of Service. * * scope: `terms_of_services:write` * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ export declare function useCompaniesAcceptTermsOfServiceMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyCompaniesAcceptTermsOfService(): MutationKey; export declare function buildCompaniesAcceptTermsOfServiceMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: CompaniesAcceptTermsOfServiceMutationVariables) => Promise; }; //# sourceMappingURL=companiesAcceptTermsOfService.d.ts.map