/** * Configuration management for Coolify MCP server. * * Simplified config that reads from ~/.config/coolify-mks-cli-mcp/config.json * or falls back to environment variables. * * @module */ import { type Result } from "@mks2508/no-throw"; declare const CONFIG_DIR: string; declare const CONFIG_FILE: string; /** * Coolify configuration structure. */ export interface ICoolifyConfig { /** Coolify instance URL */ url?: string; /** Coolify API token */ token?: string; } /** * Loads Coolify configuration from config file or environment variables. * * Priority: Config file > Environment variables * * @returns Result with configuration or error * * @example * ```typescript * const result = await loadConfig() * if (isOk(result)) { * console.log('Coolify URL:', result.value.url) * } * ``` */ export declare function loadConfig(): Promise>; /** * Saves Coolify configuration to file. * * Creates the config directory if it doesn't exist. * * @param config - Configuration to save * @returns Result indicating success or error * * @example * ```typescript * const result = await saveConfig({ url: 'https://coolify.example.com', token: 'xxx' }) * ``` */ export declare function saveConfig(config: ICoolifyConfig): Promise>; /** * Gets the Coolify URL from config or environment. * * @returns Coolify URL or undefined */ export declare function getCoolifyUrl(): Promise; /** * Gets the Coolify token from config or environment. * * @returns Coolify token or undefined */ export declare function getCoolifyToken(): Promise; /** * Cached application settings that the Coolify API doesn't expose in GET responses. */ export interface ICachedAppSettings { /** Auto-deploy on git push */ isAutoDeployEnabled?: boolean; /** Watch paths for selective deploy */ watchPaths?: string | null; /** When this cache entry was last updated */ cachedAt?: string; } /** * Caches application settings locally after a successful PATCH. * * @param appUuid - Application UUID * @param settings - Settings to cache (merged with existing) */ export declare function cacheAppSettings(appUuid: string, settings: Partial): Promise; /** * Reads cached settings for an application. * * @param appUuid - Application UUID * @returns Cached settings or null if not cached */ export declare function getCachedAppSettings(appUuid: string): Promise; export { CONFIG_DIR, CONFIG_FILE }; //# sourceMappingURL=config.d.ts.map