1 | import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
2 | import { DataConnector } from '@jupyterlab/statedb';
|
3 | import { ServerConnection } from '../serverconnection';
|
4 |
|
5 |
|
6 |
|
7 | export declare class SettingManager extends DataConnector<ISettingRegistry.IPlugin, string> {
|
8 | |
9 |
|
10 |
|
11 | constructor(options?: SettingManager.IOptions);
|
12 | /**
|
13 | * The server settings used to make API requests.
|
14 | */
|
15 | readonly serverSettings: ServerConnection.ISettings;
|
16 | /**
|
17 | * Fetch a plugin's settings.
|
18 | *
|
19 | * @param id - The plugin's ID.
|
20 | *
|
21 | * @returns A promise that resolves if successful.
|
22 | */
|
23 | fetch(id: string): Promise<ISettingRegistry.IPlugin>;
|
24 | /**
|
25 | * Fetch the list of all plugin setting bundles.
|
26 | *
|
27 | * @returns A promise that resolves if successful.
|
28 | */
|
29 | list(query?: 'ids'): Promise<{
|
30 | ids: string[];
|
31 | values: ISettingRegistry.IPlugin[];
|
32 | }>;
|
33 | |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | save(id: string, raw: string): Promise<void>;
|
43 | }
|
44 |
|
45 |
|
46 |
|
47 | export declare namespace SettingManager {
|
48 | |
49 |
|
50 |
|
51 | interface IOptions {
|
52 | |
53 |
|
54 |
|
55 | serverSettings?: ServerConnection.ISettings;
|
56 | }
|
57 | }
|
58 |
|
59 |
|
60 |
|
61 | export declare namespace Setting {
|
62 | |
63 |
|
64 |
|
65 | interface IManager extends SettingManager {
|
66 | }
|
67 | }
|