import type { EventTemplate, VerifiedEvent } from 'nostr-tools/pure'; import type { NostrSigner } from './types'; interface WindowNostrCrypto { encrypt(pubkey: string, plaintext: string): Promise; decrypt(pubkey: string, ciphertext: string): Promise; } interface WindowNostr { getPublicKey(): Promise; signEvent(event: EventTemplate): Promise; nip04?: WindowNostrCrypto; nip44?: WindowNostrCrypto; } declare global { interface Window { nostr?: WindowNostr; } } export declare class ExtensionSigner implements NostrSigner { readonly type: "extension"; private readonly nostr; constructor(); getPublicKey(): Promise; signEvent(event: EventTemplate): Promise; nip04Encrypt(pubkey: string, plaintext: string): Promise; nip04Decrypt(pubkey: string, ciphertext: string): Promise; nip44Encrypt(pubkey: string, plaintext: string): Promise; nip44Decrypt(pubkey: string, ciphertext: string): Promise; } export {}; //# sourceMappingURL=extension-signer.d.ts.map