import { PublicKey } from "./crypto" import { RawEvent, Unsigned } from "./event" declare global { interface Window { nostr?: { getPublicKey: () => Promise signEvent: (event: Unsigned) => Promise getRelays?: () => Promise<{ [url: string]: { read: boolean; write: boolean } }> nip04?: { encrypt?: (pubkey: PublicKey, plaintext: string) => Promise decrypt?: (pubkey: PublicKey, ciphertext: string) => Promise } } } }