nostr-tools
Version:
Tools for making a Nostr client.
25 lines (24 loc) • 734 B
TypeScript
import type { Event } from './core.ts';
import type { EventPointer, ProfilePointer } from './nip19.ts';
export declare function parse(event: Pick<Event, 'tags'>): {
/**
* Pointer to the root of the thread.
*/
root: EventPointer | undefined;
/**
* Pointer to a "parent" event that parsed event replies to (responded to).
*/
reply: EventPointer | undefined;
/**
* Pointers to events that may or may not be in the reply chain.
*/
mentions: EventPointer[];
/**
* Pointers to events that were directly quoted.
*/
quotes: EventPointer[];
/**
* List of pubkeys that are involved in the thread in no particular order.
*/
profiles: ProfilePointer[];
};