import { utf8ToBytes } from "@noble/hashes/utils.js"; declare function encrypt_v2(plaintext: string, conversationKey: Uint8Array, nonce?: Uint8Array & Uint8Array): string; declare function decrypt_v2(ciphertext: Uint8Array, nonce: Uint8Array, mac: Uint8Array, conversationKey: Uint8Array): string; declare function decrypt_v1(ciphertext: Uint8Array, nonce: Uint8Array, conversationKey: Uint8Array): string; export declare const nip44: { utils: { minPlaintextSize: number; maxPlaintextSize: number; utf8Encode: typeof utf8ToBytes; utf8Decode(bytes: Uint8Array): any; getConversationKey(privkeyA: string, pubkeyB: string): Uint8Array; getMessageKeys(conversationKey: Uint8Array, nonce: Uint8Array): { chacha_key: Uint8Array; chacha_nonce: Uint8Array; hmac_key: Uint8Array; }; calcPaddedLen(len: number): number; writeU16BE(num: number): Uint8Array; pad(plaintext: string): Uint8Array; unpad(padded: Uint8Array): string; hmacAad(key: Uint8Array, message: Uint8Array, aad: Uint8Array): Uint8Array & Uint8Array; decodePayload(payload: string): { version: number; nonce: Uint8Array; ciphertext: Uint8Array; mac: Uint8Array | undefined; }; }; v1: { getConversationKey: (privKey: string, pubKey: string) => Uint8Array & Uint8Array; decrypt: typeof decrypt_v1; }; v2: { getConversationKey: (privkeyA: string, pubkeyB: string) => Uint8Array; encrypt: typeof encrypt_v2; decrypt: typeof decrypt_v2; }; }; export {}; //# sourceMappingURL=nip44.d.ts.map