import type { IStaticMethods } from "preline" declare global { interface NostrNip07 { getPublicKey(): Promise signEvent(event: unknown): Promise nip04?: { encrypt(pubkey: string, plaintext: string): Promise decrypt(pubkey: string, ciphertext: string): Promise } nip44?: { encrypt(pubkey: string, plaintext: string): Promise decrypt(pubkey: string, ciphertext: string): Promise } } interface Window { HSStaticMethods: IStaticMethods nostr?: NostrNip07 } } interface ImportMetaEnv { readonly VITE_API_URL: string readonly VITE_RELAY_DOMAIN: string readonly VITE_PLATFORM_NAME?: string } interface ImportMeta { readonly env: ImportMetaEnv } export {}