/** * Base layer: read and merge every `*.csv` in `translations//` into a flat * `{ source: translation }` map. Files merge in sorted filename order so a key * defined in two files resolves deterministically (last file wins). Needs no DB/config. */ export declare function loadLocale(locale: string): Promise>; /** * Override seam (spec §6.20). Default behaviour is identity: with no * `localeDictionary` processor registered, `getValue` returns the disk base * unchanged. A future admin-managed-translation module registers a processor * (DB overrides win) without touching this file or any call site. */ export declare function composeLocaleDictionary(locale: string, base: Record): Promise>; /** * Scan every locale folder on disk and build its effective dictionary into the * registry. Disk-only, so it is safe to run at bootstrap (before migrations). * Sequential on purpose: the override seam shares one registry slot per call. */ export declare function loadAllLocales(): Promise; /** Rebuild one locale's effective dictionary and hot-swap it (e.g. after an admin edit). */ export declare function reloadLocale(locale: string): Promise; /** Rebuild every locale (e.g. post-startup, once DB-backed overrides are available). */ export declare function reloadAllLocales(): Promise; /** Locales that have a dictionary on disk (the source language is not included). */ export declare function getAvailableLocales(): string[]; /** * The full in-memory dictionary for a locale. Empty object when the locale has no * folder (callers then fall back to the source string). */ export declare function getDictionary(locale: string): Record; /** * The dictionary shipped to the client for one page (`eContext.translations`). Ships the * **full locale dict**, memoized per (route, locale). * * Per-page slicing (§6.22) was attempted in P6c and **backed out**: a source-level * per-route key scan under-includes — `getComponentsByRoute` returns only top-level * page/area components, so `_()` keys in their imported children are missed (the * homepage scanned to 0 keys, which would blank its translations). Correct slicing * needs a webpack-level key collector (sees the full per-entry module graph); deferred. * The full locale dict is small and always correct. */ export declare function getPageDictionary(route: { id: string; isAdmin?: boolean; } | undefined, locale: string): Record;