hayai-db
Version:
⚡ Instantly create and manage local databases with one command
28 lines (27 loc) • 985 B
TypeScript
import { HayaiConfig } from './types.js';
export declare class ConfigManager {
private static instance;
private config;
private readonly configPath;
private constructor();
static getInstance(configPath?: string): ConfigManager;
private pathExists;
private ensureDir;
loadConfig(): Promise<HayaiConfig>;
saveConfig(): Promise<void>;
getConfig(): HayaiConfig;
updateConfig(updates: Partial<HayaiConfig>): void;
getDataDirectory(): string;
getComposeFilePath(): string;
getLogFilePath(): string;
getPortRange(): {
start: number;
end: number;
};
private getDefaultConfig;
}
export declare const getConfig: () => Promise<HayaiConfig>;
export declare const updateConfig: (updates: Partial<HayaiConfig>) => Promise<void>;
export declare const getDataDirectory: () => Promise<string>;
export declare const getComposeFilePath: () => Promise<string>;
export declare const getLogFilePath: () => Promise<string>;