/** * Hebrew Temurah (Letter Substitution Ciphers) * * Two ciphers derived from primary historical sources: * - Atbash: Jewish Encyclopedia (1903) + Pardes Rimonim (1548) * - Albam: Pardes Rimonim (1548), Gate 30, Chapter 5 * * Note: Temurah transforms letters into other letters, not numbers. * To get a numeric value, apply gematria to the transformed text. * * @example * ```typescript * import { hebrew } from '@metaxia/scriptures-core'; * * // Apply Atbash cipher * hebrew.temurah.atbash('בבל') // 'ששכ' (Babel -> Sheshakh) * * // Apply Albam cipher * hebrew.temurah.albam('אלהים') // 'למהיב' * * // Combine with gematria * const transformed = hebrew.temurah.atbash('בבל'); * const value = hebrew.gematria.misparHechrachi(transformed); * ``` */ /** * Options for cipher transformations. */ export interface TemuraOptions { /** * Whether to preserve final letter forms in output. * Default: false */ preserveFinalForms?: boolean; } /** * Cipher metadata for documentation. */ export interface CipherSystem { name: string; hebrewName: string; description: string; source: { text: string; section?: string; url?: string; quote?: string; }; mapping: Record; } /** * Atbash (אתב״ש) - Mirror position cipher * * A symmetric cipher where each letter is replaced by its "mirror" position * in the alphabet. The first letter maps to the last, second to second-to-last, etc. * * Sources: * - Jewish Encyclopedia (1903), "Gematria", Section II.2, p.589 * - Pardes Rimonim (1548), Gate 30, Chapters 5-6 * * Biblical examples: * - בבל (Babel) -> ששך (Sheshakh) - Jeremiah 25:26 * - כשדים (Kasdim) -> לב קמי (Lev Kamai) - Jeremiah 51:1 */ export declare function atbash(text: string, options?: TemuraOptions): string; /** * Albam (אלב״ם) - Half-alphabet swap cipher * * A symmetric cipher where the alphabet is split into two halves of 11 letters, * and letters are paired sequentially between the halves: * א↔ל, ב↔מ, ג↔נ, ד↔ס, ה↔ע, ו↔פ, ז↔צ, ח↔ק, ט↔ר, י↔ש, כ↔ת * * Source: Pardes Rimonim (1548), Gate 30, Chapter 5 * Quote: "אל במ גנ דס הע וף זץ חק טר יש כת" */ export declare function albam(text: string, options?: TemuraOptions): string; export declare const CIPHERS: Record; /** * List available cipher names. */ export declare function listCiphers(): string[]; /** * Get cipher metadata by name. */ export declare function getCipher(name: string): CipherSystem | undefined; /** * Get the mapping table for a cipher. */ export declare function getMapping(cipher: 'atbash' | 'albam'): Record; //# sourceMappingURL=index.d.ts.map