1 | export declare type ISettings = {
|
2 | [key: string]: any;
|
3 | };
|
4 | export declare type ISettingsFunction = (settings: ISettings) => ISettings;
|
5 |
|
6 |
|
7 |
|
8 | export declare type Settings = ISettings;
|
9 |
|
10 |
|
11 |
|
12 | export declare type SettingsFunction = ISettingsFunction;
|
13 | export interface ICustomizations {
|
14 | settings: ISettings;
|
15 | scopedSettings: {
|
16 | [key: string]: ISettings;
|
17 | };
|
18 | inCustomizerContext?: boolean;
|
19 | }
|
20 | export declare class Customizations {
|
21 | private static _suppressUpdates;
|
22 | static reset(): void;
|
23 | |
24 |
|
25 |
|
26 | static applySettings(settings: ISettings): void;
|
27 | |
28 |
|
29 |
|
30 | static applyScopedSettings(scopeName: string, settings: ISettings): void;
|
31 | static getSettings(properties: string[], scopeName?: string, localSettings?: ICustomizations): any;
|
32 | |
33 |
|
34 |
|
35 |
|
36 |
|
37 | static applyBatchedUpdates(code: () => void, suppressUpdate?: boolean): void;
|
38 | static observe(onChange: () => void): void;
|
39 | static unobserve(onChange: () => void): void;
|
40 | private static _raiseChange;
|
41 | }
|