/** * Parse an RFC 5646 Accept-Language header value into a prioritized list of language tags. * * @example * parseAcceptLanguage("tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7") * // → ["tr-TR", "tr", "en-US", "en"] */ export declare function parseAcceptLanguage(header: string | null | undefined): string[]; /** * Type-safe message accessor for CDN translation messages. * Safely extracts a string value from a namespace, with fallback. * * @example * const common = messages.common; * msg(common, "welcome", "Welcome") // → "Hoş geldiniz" or "Welcome" */ export declare function msg(ns: Record | undefined, key: string, fallback?: string): string; /** * Find the best matching locale from a parsed Accept-Language list against available locales. * * Matching strategy (in order): * 1. Exact match: "tr-TR" → "tr-TR" * 2. Base language match: "tr-TR" → "tr" * 3. Region expansion: "tr" matches "tr-TR" (first available variant) * * Returns null if no match found. */ export declare function matchLocale(languages: string[], availableLocales: string[]): string | null; //# sourceMappingURL=utils.d.ts.map