import React from "react"; /** * Only "zh" (Simplified Chinese) / "en" (English) are supported now. * CAVEAT: * * We do not store Locale into application context (or store). * So that we can access locale info anywhere in the code, as well as performance. * * Page refresh is required if you want to switch language. */ export type Locale = "zh" | "en"; export declare const LocaleContext: React.Context; declare class LocaleManager { private readonly storageKey; private locale; setInitial(locale: Locale | "auto"): Promise; change(locale: Locale): void; current(): Locale; private preferredLocale; } export declare const LocaleUtil: LocaleManager; export {};