UNPKG

@towns-protocol/react-sdk

Version:

React Hooks for Towns Protocol SDK

11 lines 601 B
import type { GdmModel } from '@towns-protocol/sdk'; import { type ObservableConfig } from './useObservable'; /** * Hook to get the data of a Group DM. * You can use this hook to get Group DM metadata and if the user has joined the Group DM. * @param streamId - The id of the Group DM to get the data of. * @param config - Configuration options for the observable. * @returns The GdmModel of the Group DM. */ export declare const useGdm: (streamId: string, config?: ObservableConfig.FromData<GdmModel>) => import("./useObservable").ObservableValue<GdmModel>; //# sourceMappingURL=useGdm.d.ts.map