voicebot-react-native-expo
Version:
This is a voicebot-react-native package of Kipps AI voice bot for React Native Expo
21 lines • 685 B
TypeScript
import { Participant } from 'livekit-client';
/**
* The `useParticipantInfo` hook returns the identity, name, and metadata of a given participant.
* It requires a `Participant` object passed as property or via the `ParticipantContext`.
*
* @example
* ```tsx
* const { identity, name, metadata } = useParticipantInfo({ participant });
* ```
* @public
*/
export interface UseParticipantInfoOptions {
participant?: Participant;
}
/** @public */
export declare function useParticipantInfo(props?: UseParticipantInfoOptions): {
identity: string | undefined;
name: string | undefined;
metadata: string | undefined;
};
//# sourceMappingURL=useParticipantInfo.d.ts.map