@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
20 lines • 826 B
TypeScript
import { EnvVariablesServer } from '../common/env-variables';
import { Deferred } from '../common/promise-util';
export declare const SettingService: unique symbol;
/**
* A service providing a simple user-level, persistent key-value store on the back end
*/
export interface SettingService {
set(key: string, value: string): Promise<void>;
get(key: string): Promise<string | undefined>;
}
export declare class SettingServiceImpl implements SettingService {
protected readonly envVarServer: EnvVariablesServer;
protected readonly ready: Deferred<void>;
protected values: Record<string, string>;
protected init(): void;
set(key: string, value: string): Promise<void>;
writeFile(): Promise<void>;
get(key: string): Promise<string | undefined>;
}
//# sourceMappingURL=setting-service.d.ts.map