1 | import { ITypedHash } from "./collections.js";
|
2 | import { ISPFXContext } from "./spfxcontextinterface.js";
|
3 | export interface ILibraryConfiguration {
|
4 | |
5 |
|
6 |
|
7 | globalCacheDisable?: boolean;
|
8 | |
9 |
|
10 |
|
11 | defaultCachingStore?: "session" | "local";
|
12 | |
13 |
|
14 |
|
15 | defaultCachingTimeoutSeconds?: number;
|
16 | |
17 |
|
18 |
|
19 | enableCacheExpiration?: boolean;
|
20 | |
21 |
|
22 |
|
23 | cacheExpirationIntervalMilliseconds?: number;
|
24 | |
25 |
|
26 |
|
27 | spfxContext?: ISPFXContext;
|
28 | |
29 |
|
30 |
|
31 | ie11?: boolean;
|
32 | }
|
33 | export declare function setup<T = ILibraryConfiguration>(config: T, runtime?: Runtime): void;
|
34 | export declare function onRuntimeCreate(hook: (runtime: Runtime) => void): void;
|
35 | export declare class Runtime {
|
36 | private _v;
|
37 | constructor(_v?: Map<string | number | symbol, any>);
|
38 | /**
|
39 | *
|
40 | * @param config The set of properties to add to this runtime instance
|
41 | */
|
42 | assign<T = ITypedHash<any>>(config: T): void;
|
43 | /**
|
44 | * Gets a runtime value using T to define the available keys, and R to define the type returned by that key
|
45 | *
|
46 | * @param key
|
47 | */
|
48 | get<T = ILibraryConfiguration, R = any>(key: keyof T): R;
|
49 | /**
|
50 | * Exports the internal Map representing this runtime
|
51 | */
|
52 | export(): Map<string | number | symbol, any>;
|
53 | }
|
54 | export declare const DefaultRuntime: Runtime;
|
55 | //# sourceMappingURL=libconfig.d.ts.map |
\ | No newline at end of file |