/** * Encrypts one workspace environment variable value with AES-256-GCM under an * operator key held outside Postgres. v2 encodes the JavaScript string as * UTF-16LE before encryption so every code unit (including NUL and lone * surrogates) round-trips exactly. Output format: * `v2::`. */ export declare function encryptEnvironmentValue(key: Uint8Array, plaintext: string): string; /** * Decrypts current lossless v2 values and historical UTF-8 v1 values. Error * messages never echo plaintext or ciphertext: unknown versions throw * "unsupported environment value format", auth-tag mismatches throw * "environment value decryption failed". */ export declare function decryptEnvironmentValue(key: Uint8Array, stored: string): string;