UNPKG

nostr-web-components

Version:

collection of web components that provide quick access to basic nostr things

10 lines (9 loc) 607 B
import { SimplePool } from '@nostr/tools/pool'; import { NostrUser } from '@nostr/gadgets/metadata'; import type { WindowNostr } from '@nostr/tools/nip07'; export declare const pool: SimplePool; export declare function fetchNostrUser(pubkey: string, relays: string[]): Promise<NostrUser>; export declare function getOutboxRelaysFor(pubkey: string): Promise<string[]>; export declare function getInboxRelaysFor(pubkey: string): Promise<string[]>; export declare function inputToPubkey(input: string): Promise<[string, string[]] | [undefined]>; export declare function getWindowNostr(): Promise<WindowNostr>;