UNPKG

sda

Version:

Software development assistant

20 lines (19 loc) 751 B
import { INamed } from '../interfaces'; import { IConfigEnvironment, IConfigTemplate } from '../interfaces/IConfig'; export default class HomeConfig { static create(): HomeConfig; /** * Returns the path to the config file in the user folder. * If the file doesn't exist returns undefined. */ static getPathIfExists(): string | undefined; private config; private fileName; private constructor(); addEnvironment(env: INamed<IConfigEnvironment>): void; addTemplate(template: INamed<IConfigTemplate>): void; removeEnvironment(envId: string): void; removeTemplate(templateId: string): void; write(): Promise<void>; } export declare function getHomeFolder(): string | undefined;