import type { NostrEvent, NotSignedNostrEvent } from "./nostr"; export type SignerSupports = "nip04" | "nip44" | string; export interface EventSigner { init(): Promise; getPubKey(): Promise | string; nip4Encrypt(content: string, key: string): Promise; nip4Decrypt(content: string, otherKey: string): Promise; nip44Encrypt(content: string, key: string): Promise; nip44Decrypt(content: string, otherKey: string): Promise; sign(ev: NostrEvent | NotSignedNostrEvent): Promise; get supports(): Array; } /** * Helper function to decrypt either NIP-04 or NIP-44 */ export declare function decryptSigner(content: string, signer: EventSigner, otherKey?: string): Promise; export declare class PrivateKeySigner implements EventSigner { #private; constructor(privateKey: string | Uint8Array); /** * Generate a new private key */ static random(): PrivateKeySigner; get supports(): string[]; get privateKey(): string; init(): Promise; getPubKey(): string; nip4Encrypt(content: string, otherKey: string): Promise; nip4Decrypt(content: string, otherKey: string): Promise; nip44Encrypt(content: string, otherKey: string): Promise; nip44Decrypt(content: string, otherKey: string): Promise; sign(ev: NostrEvent): Promise; } //# sourceMappingURL=signer.d.ts.map