/** * @fileoverview Internationalization utilities for Nova components. * Provides automatic locale detection and default translations. */ /** * Gets the browser's locale (language code). * Falls back to 'en' if detection fails. * * @returns {string} The locale code (e.g., 'en', 'fr', 'de') */ export declare function getBrowserLocale(): string; /** * Gets the localized truncated results text. * Automatically detects browser locale and provides appropriate translation. * Falls back to English if translation is not available. * * @param {string} [locale] - Optional locale override. If not provided, uses browser locale. * @returns {string} The localized text with placeholders {shown} and {total} * * @example * getTruncatedResultsText() // Uses browser locale * getTruncatedResultsText('fr') // Returns French translation * getTruncatedResultsText('de') // Returns German translation */ export declare function getTruncatedResultsText(locale?: string): string; /** * Formats the truncated results text by replacing placeholders with actual values. * * @param {string} template - The text template with {shown} and {total} placeholders * @param {number} shown - The number of items shown * @param {number} total - The total number of items * @returns {string} The formatted text with replaced placeholders * * @example * formatTruncatedResults('{shown} of {total}', 10, 100) // '10 of 100' */ export declare function formatTruncatedResults(template: string, shown: number, total: number): string;