//#region src/seal.d.ts /** Stored sealed value format: `hex(iv):hex(ciphertext)`. */ export declare const sealedPayloadPattern: RegExp; /** An imported AES-GCM key. */ export type SealKey = Awaited>; /** Imports a 32-byte AES-GCM key for `sealWithKey` and `unsealWithKey`. */ export declare function importSealKey(key: Uint8Array): Promise; /** Returns a stable public identifier for a raw key: the first 8 bytes of its SHA-256 digest, in hex. */ export declare function sealKeyId(key: Uint8Array): Promise; /** * Encrypts `plaintext` with AES-GCM under a key that the caller owns, and binds it to `additionalData`. * To seal an app value with a key derived from `VITEHUB_SECRET`, use `seal()` from `@vite-hub/env`. */ export declare function sealWithKey(key: SealKey, additionalData: Uint8Array, plaintext: string): Promise; /** Decrypts a value from `sealWithKey`. Fails when the key or `additionalData` differs. */ export declare function unsealWithKey(key: SealKey, additionalData: Uint8Array, payload: string): Promise; //#endregion