riku
7 小时以前 8e3f3890e93d097df4be744648b9ac404d20a558
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import ReactiveState from './reactive-state';
export declare type Locale = Record<string, any>;
declare class ConfigStore {
    currentLocale: ReactiveState<Locale>;
    themeVars: ReactiveState<Record<string, string>>;
    private _pageInitFlags;
    private _cleanupCallbacks;
    private _deepEqual;
    switchLocale(locale: Locale, componentId?: string): void;
    updateThemeVars(vars: Record<string, string>): void;
    private _getOrInitPageFlag;
    registerCleanup(componentId: string, cleanup: () => void): void;
    resetPageState(componentId?: string): void;
}
export declare const configStore: ConfigStore;
export {};