import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; 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 { GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceHeaderXGustoAPIVersion, GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceRequest } from "../models/operations/getv1partnermanagedcompaniescompanyuuidtermsofservice.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQuery, CompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQueryData, prefetchCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService, queryKeyCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService } from "./companiesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService.core.js"; export { buildCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQuery, type CompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQueryData, prefetchCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService, queryKeyCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService, }; export type CompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQueryError = NotFoundErrorObject | GustoEmbeddedError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get the terms of service status for a company * * @remarks * Check if any company payroll admin has accepted the Gusto Embedded Payroll's [Terms of Service](https://flows.gusto.com/terms). * * This is useful for partners with multiple payroll admins who need to check TOS status at the company level rather than for a specific user. * * scope: `terms_of_services:read` */ export declare function useCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService(request: GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceRequest, options?: QueryHookOptions): UseQueryResult; /** * Get the terms of service status for a company * * @remarks * Check if any company payroll admin has accepted the Gusto Embedded Payroll's [Terms of Service](https://flows.gusto.com/terms). * * This is useful for partners with multiple payroll admins who need to check TOS status at the company level rather than for a specific user. * * scope: `terms_of_services:read` */ export declare function useCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceSuspense(request: GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceData(client: QueryClient, queryKeyBase: [ companyUuid: string, parameters: { xGustoAPIVersion?: GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceHeaderXGustoAPIVersion | undefined; } ], data: CompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQueryData): CompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceQueryData | undefined; export declare function invalidateCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService(client: QueryClient, queryKeyBase: TupleToPrefixes<[ companyUuid: string, parameters: { xGustoAPIVersion?: GetV1PartnerManagedCompaniesCompanyUuidTermsOfServiceHeaderXGustoAPIVersion | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllCompaniesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=companiesGetV1PartnerManagedCompaniesCompanyUuidTermsOfService.d.ts.map