voicebot-react-native-expo
Version:
This is a voicebot-react-native package of Kipps AI voice bot for React Native Expo
21 lines • 539 B
TypeScript
import { Room } from 'livekit-client';
/**
* The `useRoomInfo` hook returns the name and metadata of the given `Room`.
* @remarks
* Needs to be called inside a `RoomContext` or by passing a `Room` instance.
*
* @example
* ```tsx
* const { name, metadata } = useRoomInfo();
* ```
* @public
*/
export interface UseRoomInfoOptions {
room?: Room;
}
/** @public */
export declare function useRoomInfo(options?: UseRoomInfoOptions): {
name: string;
metadata: string | undefined;
};
//# sourceMappingURL=useRoomInfo.d.ts.map