UNPKG

@towns-protocol/react-sdk

Version:

React Hooks for Towns Protocol SDK

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