import type { LocalizedStringDictionary } from './LocalizedStringDictionary'; export type Variables = Record | undefined; export type LocalizedString = string | ((args: Variables, formatter?: LocalizedStringFormatter) => string); type InternalString = string | (() => string); /** * Formats localized strings from a LocalizedStringDictionary. Supports interpolating variables, * selecting the correct pluralization, and formatting numbers for the locale. */ export declare class LocalizedStringFormatter { private locale; private strings; constructor(locale: string, strings: LocalizedStringDictionary); /** Formats a localized string for the given key with the provided variables. */ format(key: K, variables?: Variables): string; protected plural(count: number, options: Record, type?: Intl.PluralRuleType): string; protected number(value: number): string; protected select(options: Record, value: string): string; } export {};