UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

8 lines 1.14 kB
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