/**
 * Advanced Namespace Loading for Performance Optimization
 *
 * This module implements true lazy loading of translation namespaces,
 * loading only what's needed for each page/component.
 */
import { type SupportedLocale, type TranslationNamespace } from './config';
import type { NamespaceData, NamespacesMap } from '../messages/types';
/**
 * Load a single namespace with caching
 * Uses registry-based loading: primary locale -> fallback locale -> empty object
 */
export declare function loadNamespace(locale: SupportedLocale, namespace: TranslationNamespace): Promise<NamespaceData>;
/**
 * Load multiple namespaces efficiently
 */
export declare function loadNamespaces(locale: SupportedLocale, namespaces: TranslationNamespace[]): Promise<NamespacesMap>;
/**
 * Get required namespaces for a specific page/route
 */
export declare function getPageNamespaces(pathname: string): TranslationNamespace[];
/**
 * Load messages optimized for a specific page
 * This is the main function that should be used in i18n.ts
 */
export declare function loadPageMessages(locale: SupportedLocale, pathname?: string): Promise<NamespacesMap>;
/**
 * Preload critical namespaces for better performance
 */
export declare function preloadCriticalNamespaces(locale: SupportedLocale): Promise<void>;
/**
 * Clear namespace cache (useful for development/testing)
 */
export declare function clearNamespaceCache(): void;
/**
 * Get cache statistics for debugging
 */
export declare function getCacheStats(): {
    size: number;
    keys: string[];
};
//# sourceMappingURL=namespace-loader.d.ts.map