synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
8 lines • 1.14 kB
TypeScript
import { SynapseClientError } from '@/utils';
import { AccessToken, TermsOfServiceInfo, TermsOfServiceStatus } from '@sage-bionetworks/synapse-types';
import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
export declare function useTermsOfServiceInfo(options?: Partial<UseQueryOptions<TermsOfServiceInfo, SynapseClientError>>): import("@tanstack/react-query").UseQueryResult<TermsOfServiceInfo, SynapseClientError>;
export declare function useTermsOfServiceStatus(accessToken?: string, //usually we can fetch the access token from the context, but this hook is used by ApplicationSessionManager which sets the access token in the context (ApplicationSessionContextProvider)!
options?: Partial<UseQueryOptions<TermsOfServiceStatus, SynapseClientError>>): import("@tanstack/react-query").UseQueryResult<TermsOfServiceStatus, SynapseClientError>;
export declare function useSignTermsOfService(options?: Partial<UseMutationOptions<unknown, SynapseClientError, AccessToken>>): import("@tanstack/react-query").UseMutationResult<unknown, SynapseClientError, AccessToken, unknown>;
//# sourceMappingURL=useTermsOfService.d.ts.map