import { Matter, type MatterInit } from "./matter.js"; import type { CipherHydratable, CipherHydratableCtor } from "./primitive.js"; export interface CipherDecryptOptions { prikey?: string | Uint8Array | ArrayBufferView; seed?: string | Uint8Array | ArrayBufferView; ctor?: CipherHydratableCtor; transferable?: boolean; bare?: boolean; } /** * Ciphertext primitive for encrypted secret payloads. * * KERIpy substance: cipher material carries sealed-box encrypted CESR payloads * while the cipher code preserves how the plaintext should be rehydrated. * * Construction rule: * - fixed salt/seed cipher families may infer `code` from raw size * - variable families still require the caller or parser to provide the * correct derivation code explicitly */ export declare class Cipher extends Matter { static readonly Codex: Readonly<{ readonly X25519_Cipher_Big_L0: "7AAC"; readonly X25519_Cipher_Big_L1: "8AAC"; readonly X25519_Cipher_Big_L2: "9AAC"; readonly X25519_Cipher_L0: "4C"; readonly X25519_Cipher_L1: "5C"; readonly X25519_Cipher_L2: "6C"; readonly X25519_Cipher_QB2_Big_L0: "7AAE"; readonly X25519_Cipher_QB2_Big_L1: "8AAE"; readonly X25519_Cipher_QB2_Big_L2: "9AAE"; readonly X25519_Cipher_QB2_L0: "4E"; readonly X25519_Cipher_QB2_L1: "5E"; readonly X25519_Cipher_QB2_L2: "6E"; readonly X25519_Cipher_QB64_Big_L0: "7AAD"; readonly X25519_Cipher_QB64_Big_L1: "8AAD"; readonly X25519_Cipher_QB64_Big_L2: "9AAD"; readonly X25519_Cipher_QB64_L0: "4D"; readonly X25519_Cipher_QB64_L1: "5D"; readonly X25519_Cipher_QB64_L2: "6D"; readonly X25519_Cipher_Salt: "1AAH"; readonly X25519_Cipher_Seed: "P"; }>; static readonly Codes: Readonly<{ X25519_Cipher_Big_L0: "7AAC"; X25519_Cipher_Big_L1: "8AAC"; X25519_Cipher_Big_L2: "9AAC"; X25519_Cipher_L0: "4C"; X25519_Cipher_L1: "5C"; X25519_Cipher_L2: "6C"; X25519_Cipher_QB2_Big_L0: "7AAE"; X25519_Cipher_QB2_Big_L1: "8AAE"; X25519_Cipher_QB2_Big_L2: "9AAE"; X25519_Cipher_QB2_L0: "4E"; X25519_Cipher_QB2_L1: "5E"; X25519_Cipher_QB2_L2: "6E"; X25519_Cipher_QB64_Big_L0: "7AAD"; X25519_Cipher_QB64_Big_L1: "8AAD"; X25519_Cipher_QB64_Big_L2: "9AAD"; X25519_Cipher_QB64_L0: "4D"; X25519_Cipher_QB64_L1: "5D"; X25519_Cipher_QB64_L2: "6D"; X25519_Cipher_Salt: "1AAH"; X25519_Cipher_Seed: "P"; }>; constructor(init: Matter | MatterInit); /** * Recover plaintext from this cipher using either a box private key or seed. * * KERIpy parity: * - `prikey` or `seed` instantiates a `Decrypter` * - default plaintext constructor is inferred from the cipher family when * possible * * Key-material rule: * - `prikey` is already-qualified X25519 private box material * - `seed` is an Ed25519 signer seed that is first converted into the * corresponding X25519 private box key */ decrypt({ prikey, seed, ctor, transferable, bare, }?: CipherDecryptOptions): T | Uint8Array; } //# sourceMappingURL=cipher.d.ts.map