export declare const utf8Decoder: TextDecoder;
export declare const utf8Encoder: TextEncoder;
export declare class Nip04 {
    private cache;
    createKey(privkey: Uint8Array, pubkey: string): Uint8Array<ArrayBufferLike>;
    private getKey;
    encrypt(privkey: Uint8Array, pubkey: string, text: string): Promise<string>;
    decrypt(privkey: Uint8Array, pubkey: string, data: string): Promise<string>;
}
