// Type definitions for NIP-07 (Alby extension) // Alby exposes window.nostr API for Nostr authentication and signing declare global { interface Window { nostr?: { getPublicKey(): Promise signEvent(event: { kind: number created_at: number tags: string[][] content: string }): Promise<{ id: string sig: string kind: number created_at: number tags: string[][] content: string pubkey: string }> getRelays?(): Promise> nip04?: { encrypt(pubkey: string, plaintext: string): Promise decrypt(pubkey: string, ciphertext: string): Promise } } } } export {}