import { Room } from 'livekit-client'; import { TextStreamData } from '@livekit/components-core'; /** @beta */ export type UseTextStreamOptions = { room?: Room; }; /** * @beta * @param topic - the topic to listen to * @returns an array of TextStreamData that holds the text, participantInfo, and streamInfo * @example * ```tsx * const { textStreams } = useTextStream('my-topic'); * return