declare function loadRelayKey(): Buffer; interface EncryptedPayload { v: 1; nonce: string; ciphertext: string; tag: string; hmac: string; } declare function encrypt(plaintext: Buffer, masterKey: Buffer): EncryptedPayload; declare function decrypt(payload: EncryptedPayload, masterKey: Buffer): Buffer; declare function encryptJSON(data: unknown, masterKey: Buffer): EncryptedPayload; declare function decryptJSON(payload: EncryptedPayload, masterKey: Buffer): T; declare function encryptFile(filePath: string, masterKey: Buffer): EncryptedPayload; declare const RELAY_KEY_PATH: string; declare function generateRelayKey(): Buffer; declare function encodePairingString(key: Buffer): string; declare function decodePairingString(str: string): Buffer; declare function hashBuffer(data: Buffer): string; export { type EncryptedPayload, RELAY_KEY_PATH, decodePairingString, decrypt, decryptJSON, encodePairingString, encrypt, encryptFile, encryptJSON, generateRelayKey, hashBuffer, loadRelayKey };