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 { PutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceRequest, PutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceResponse } from "../models/operations/putv1partnermanagedcompaniescompanyuuidtermsofservice.js"; import { MutationHookOptions } from "./_types.js"; export type CompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutationVariables = { request: PutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceRequest; options?: RequestOptions; }; export type CompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutationData = PutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceResponse; export type CompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutationError = NotFoundErrorObject | UnprocessableEntityError | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Check terms of service status for a specific user * * @remarks * Check user-specific Terms of Service acceptance for the Gusto Embedded Payroll [Terms of Service](https://flows.gusto.com/terms). * * The user must have a role on the company. Returns whether the specific user has accepted the latest TOS version. * * Uses PUT (rather than GET) to hide the email address from URL logs. * * scope: `terms_of_services:read` */ export declare function useCompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutation(options?: MutationHookOptions): UseMutationResult; export declare function mutationKeyCompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfService(): MutationKey; export declare function buildCompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutation(client$: GustoEmbeddedCore, hookOptions?: RequestOptions): { mutationKey: MutationKey; mutationFn: (variables: CompaniesPutV1PartnerManagedCompaniesCompanyUuidTermsOfServiceMutationVariables) => Promise; }; //# sourceMappingURL=companiesPutV1PartnerManagedCompaniesCompanyUuidTermsOfService.d.ts.map