import { LanguageTag } from '@phensley/language-tag'; import { FastTag } from './util'; /** * Since a lot of comparisons will be done, we need fast access to * core fields of LanguageTag without exposing the raw fields. * * Visible for testing */ export declare const fastTag: (real: LanguageTag) => FastTag; /** * Return a language tag, combining the fast tag's core subtags with the * original's additional subtags. * * Visible for testing */ export declare const returnTag: (real: LanguageTag, fast: FastTag) => LanguageTag; /** * Methods for substituting language and region aliases, adding likely subtags, etc. * * @public */ export declare class LanguageResolver { /** * Substitute aliases only. */ static substituteAliases(real: string | LanguageTag): LanguageTag; /** * Substitute all relevant aliases, and then add likely subtags. */ static resolve(real: string | LanguageTag): LanguageTag; /** * Add any missing subtags using the likely subtags mapping. For example, * this would convert "en" to "en-Latn-US". */ static addLikelySubtags(real: string | LanguageTag): LanguageTag; /** * Remove any subtags that would be added by addLikelySubtags() above. For example, * this would convert "en-Latn-US" to "en". */ static removeLikelySubtags(real: string | LanguageTag): LanguageTag; }