UNPKG

@wocker/core

Version:
59 lines (58 loc) 1.9 kB
import { AppConfig } from "../makes/AppConfig"; import { PresetSource } from "../makes/Preset"; import { ProjectRef } from "../types/ProjectRef"; import { PluginRef } from "../types/PluginRef"; import { AppFileSystemService } from "./AppFileSystemService"; import { ProcessService } from "./ProcessService"; type TypeMap = { [type: string]: string; }; export declare class AppConfigService { readonly version: string; protected readonly processService: ProcessService; readonly fs: AppFileSystemService; protected _pwd: string; protected _config?: AppConfig; protected readonly mapTypes: TypeMap; constructor(version: string, processService: ProcessService, fs: AppFileSystemService); get experimentalFeatures(): string[]; get debug(): boolean; set debug(debug: boolean); get config(): AppConfig; get projects(): ProjectRef[]; get plugins(): PluginRef[]; /** * @deprecated */ isVersionGTE(version: string): boolean; /** * @deprecated */ pwd(...parts: string[]): string; /** * @deprecated */ setPWD(pwd: string): void; /** * @deprecated */ dataPath(...args: string[]): string; /** * @deprecated */ getConfig(): AppConfig; addProject(id: string, name: string, path: string): void; removeProject(id: string): void; registerPreset(name: string, source: PresetSource, path?: string): void; unregisterPreset(name: string): void; addPlugin(name: string, env?: PluginRef["env"]): void; removePlugin(name: string): void; getMeta(name: string, byDefault?: string): string | undefined; getMeta(name: string, byDefault: string): string; setMeta(name: string, value: string): void; unsetMeta(name: string): void; isExperimentalEnabled(key: string): boolean; getProjectTypes(): TypeMap; save(): void; } export {};