import Event from '../events/Event'; import NativeEvent from '../events/NativeEvent'; /** @hidden */ export default class CrossPlatformNormalization { static eventNormalization: (event: NativeEvent) => Event; /** * NOTE: Copied from prestoplay-web */ /** * Normalize a locale. This will take a locale and canonicalize it to a state * that we are prepared to work with. * * We only support with: * - language * - language-REGION * * If given a dialect, we will discard it. We will convert any 3-character * codes to 2-character codes. We will force language codes to lowercase and * region codes to uppercase. * * @param {string} locale * @return {string} * * @hidden */ static normalizeLanguage(locale: string): string; /** * A map from 3-letter language codes (ISO 639-2) to 2-letter language codes * (ISO 639-1) for all languages which have both in the registry. * * @const {!Map} * @private * * @hidden */ static isoMap_: Map; }