nostr-web-components
Version:
collection of web components that provide quick access to basic nostr things
9 lines (8 loc) • 387 B
TypeScript
export declare function fetchMetadata(pubkey: string, hints: string[]): Promise<any>;
export declare function inputToPubkey(input: string): Promise<[string, string[]] | [undefined]>;
export declare function getShortName(pubkey: string, metadata: {
name?: string;
display_name?: string;
picture?: string;
}): string;
export declare function shortenNpub(npub: string): string;