UNPKG

@towns-protocol/react-sdk

Version:

React Hooks for Towns Protocol SDK

11 lines 666 B
import type { MembersModel } from '@towns-protocol/sdk'; import { type ObservableConfig } from './useObservable'; /** * Hook to get the members userIds of a Space, GDM, Channel, or DM. * Used with useMember to get data from a specific member. * @param streamId - The id of the stream to get the members of. * @param config - Configuration options for the observable. * @returns The MembersModel of the stream, containing the userIds of the members. */ export declare const useMemberList: (streamId: string, config?: ObservableConfig.FromData<MembersModel>) => import("./useObservable").ObservableValue<MembersModel>; //# sourceMappingURL=useMemberList.d.ts.map