UNPKG

@river-build/react-sdk

Version:
20 lines 730 B
import { type Threads } from '@river-build/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<Threads>) => { data: { [x: string]: import("@river-build/sdk").TimelineEvent[]; }; error: undefined; status: "loading" | "loaded"; isLoading: boolean; isError: false; isLoaded: boolean; }; //# sourceMappingURL=useThreads.d.ts.map