voicebot-react-native-expo
Version:
This is a voicebot-react-native package of Kipps AI voice bot for React Native Expo
20 lines • 592 B
TypeScript
/** @public */
export interface UserInfo {
identity?: string;
name?: string;
metadata?: string;
}
/** @public */
export interface UseTokenOptions {
userInfo?: UserInfo;
}
/**
* The `useToken` hook fetches a token from the given token endpoint with the given user info.
*
* @example
* ```tsx
* const token = useToken(<token-endpoint>, roomName, { userInfo: { identity, name }});
* ```
* @public */
export declare function useToken(tokenEndpoint: string | undefined, roomName: string, options?: UseTokenOptions): string | undefined;
//# sourceMappingURL=useToken.d.ts.map