/** * SDK-side encryption utilities using the browser WebCrypto API. * * Symmetric cipher: AES-256-CBC + HMAC-SHA256 (encrypt-then-MAC) * * The AES key is generated server-side during token creation and * returned to the SDK. Both sides hold the same 32-byte key. */ export declare function fromBase64(b64: string): Uint8Array; export interface EncryptedPayload { iv: string; data: string; } /** * AES-256-CBC encrypt + HMAC-SHA256 authenticate (encrypt-then-MAC). * data = base64(ciphertext || HMAC-SHA256(iv || ciphertext)) */ export declare function encrypt(rawKey: ArrayBuffer, plaintext: string): Promise; /** * Verify HMAC-SHA256 then AES-256-CBC decrypt. */ export declare function decrypt(rawKey: ArrayBuffer, payload: EncryptedPayload): Promise; //# sourceMappingURL=crypto.d.ts.map