UNPKG

nostr-hooks

Version:
26 lines (25 loc) 872 B
import { NDKEvent } from '@nostr-dev-kit/ndk'; import { Nip29GroupThreadComment } from '../../types'; export declare const useGroupThreadComments: (relay: string | undefined, groupId: string | undefined, filter?: { byPubkey?: { pubkey: string | undefined; waitForPubkey: true; }; byId?: { id: string | undefined; waitForId: true; }; byParentId?: { parentId: string | undefined; waitForParentId: true; }; since?: number | undefined; until?: number | undefined; limit?: number | undefined; }) => { threadComments: Nip29GroupThreadComment[] | undefined; isLoadingThreadComments: boolean; hasMoreThreadComments: boolean | undefined; loadMoreThreadComments: (limit?: number, since?: number | null) => void | "" | undefined; threadCommentsEvents: NDKEvent[] | undefined; };