UNPKG

nostr-hooks

Version:
26 lines (25 loc) 832 B
import { NDKEvent } from '@nostr-dev-kit/ndk'; import { Nip29GroupReaction } from '../../types'; export declare const useGroupReactions: (relay: string | undefined, groupId: string | undefined, filter?: { byPubkey?: { pubkey: string | undefined; waitForPubkey: true; }; byId?: { id: string | undefined; waitForId: true; }; byTargetId?: { targetId: string | undefined; waitForTargetId: true; }; since?: number | undefined; until?: number | undefined; limit?: number | undefined; }) => { reactions: Nip29GroupReaction[] | undefined; isLoadingReactions: boolean; hasMoreReactions: boolean | undefined; loadMoreReactions: (limit?: number, since?: number | null) => void | "" | undefined; reactionsEvents: NDKEvent[] | undefined; };