UNPKG

@towns-protocol/react-sdk

Version:

React Hooks for Towns Protocol SDK

11 lines 583 B
import { TimelinesMap } from '@towns-protocol/sdk'; import { type ObservableConfig } from './useObservable'; /** * Hook to get the threads from a stream. * * @param streamId - The id of the stream to get the threads from. * @param config - Configuration options for the observable. * @returns The threads of the stream as a map from the message eventId to a thread. */ export declare const useThreads: (streamId: string, config?: ObservableConfig.FromObservable<TimelinesMap>) => import("./useObservable").ObservableValue<TimelinesMap>; //# sourceMappingURL=useThreads.d.ts.map