airtune-nostr-tools-development
Version:
Tools for making a Nostr client.
22 lines (21 loc) • 686 B
TypeScript
import type { Event } from './event.ts';
import type { EventPointer, ProfilePointer } from './nip19.ts';
export declare type NIP10Result = {
/**
* 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 which may or may not be in the reply chain.
*/
mentions: EventPointer[];
/**
* List of pubkeys that are involved in the thread in no particular order.
*/
profiles: ProfilePointer[];
};
export declare function parse(event: Pick<Event, 'tags'>): NIP10Result;