/** * Translation Registry System * * Manages dynamic loading of translations from entities, plugins, and themes. * Integrates with next-intl and entity system for seamless i18n. */ import type { SupportedLocale } from '../entities/types'; /** * Deep merge with key preservation * Priority: Core < Theme < Entity (later wins) */ export declare function deepMergeMessages(target: Record, source: Record): Record; /** * Register theme messages for a locale * Call this from your project's initialization to provide theme-specific translations * * @example * // In your app's initialization * import { registerThemeMessages } from '@nextsparkjs/core/lib/translations/registry' * import enMessages from './contents/themes/my-theme/messages/en' * registerThemeMessages('en', enMessages) */ export declare function registerThemeMessages(locale: string, messages: Record): void; /** * Carga y mergea mensajes de todas las fuentes * Orden: Core (base) -> Theme -> Entity (later wins) * * Merge priority ensures: * 1. Core translations provide the base * 2. Theme translations can override/extend core * 3. Entity translations can override/extend both (highest priority) * * Uses globalThis cache to prevent re-loading on each request */ export declare function loadMergedTranslations(locale: SupportedLocale): Promise>; //# sourceMappingURL=registry.d.ts.map