UNPKG

@xec-sh/cli

Version:

Xec: The Universal Shell for TypeScript

26 lines (25 loc) 932 B
import type { ConfigValue, ConfigurationOptions, InterpolationContext } from './types.js'; export declare class ConfigAPI { private options; private manager; private interpolator; private loaded; constructor(options?: ConfigurationOptions); load(): Promise<void>; get<T = ConfigValue>(path: string): T | undefined; set(path: string, value: ConfigValue): void; unset(path: string): void; save(path?: string): Promise<void>; useProfile(name: string): Promise<void>; getProfile(): string | undefined; listProfiles(): string[]; resolveTarget(ref: string): Promise<any>; interpolate(template: string, context?: InterpolationContext): string; getAll(): Record<string, any>; hasFeature(feature: string): boolean; getVersion(): string; validate(): Promise<string[]>; reload(): Promise<void>; private ensureLoaded; } export declare const config: ConfigAPI;