import type { Profile, ProfileKind } from "../profiles/types.js"; export interface LocalConfig { defaultProfile?: ProfileKind; corePort?: number; livePort?: number; portalPort?: number; logLevel?: string; dataDir?: string; } export declare const CONFIG_KEYS: readonly ["defaultProfile", "corePort", "livePort", "portalPort", "logLevel", "dataDir"]; export type ConfigKey = (typeof CONFIG_KEYS)[number]; export declare function configPath(profile: Profile): string; export declare function readLocalConfig(profile: Profile): LocalConfig; export declare class ConfigError extends Error { } /** * القيم السارية فعلًا: التجاوز إن وُجد، وإلّا ما قرّره ملفّ التشغيل. هذا ما يجعل ‎config list‎ يجيب * عن «ما المنفذ المستعمل الآن» لا «ما الذي كُتب في الملف». */ export declare function effectiveValues(profile: Profile): Record; export declare function setConfigValue(profile: Profile, key: ConfigKey, raw: string): LocalConfig; //# sourceMappingURL=local-config.d.ts.map