/** * Prefix used to mark errors that originate from a failed dynamic `import()` of * an existing config file (i.e. a syntactically broken config). Callers can test * for this prefix to distinguish a parse failure from any other error and turn it * into an actionable, user-facing hard failure. */ export declare const CONFIG_PARSE_FAILED_PREFIX = "CONFIG_PARSE_FAILED: "; /** * Parse an existing config file by loading it via native dynamic `import()`. * Handles both `.js` and `.ts` config files (the latter through the `tsx` * loader already registered for the process). * * Returns the full config object — including any arbitrary/custom keys — so the * caller can preserve every value across regeneration. Returns `null` only when * the file does not exist. * * On a syntactically broken config the dynamic import throws; this function * re-throws a wrapped error prefixed with {@link CONFIG_PARSE_FAILED_PREFIX} so * the caller can hard-fail with guidance instead of silently preserving only a * subset of keys. It never falls back to lossy regex extraction. * * @throws Error prefixed with {@link CONFIG_PARSE_FAILED_PREFIX} when the config * cannot be imported, or the `hulaRepository` remediation error when the * legacy key is present. */ export declare function parseExistingConfig(configPath: string): Promise> | null>; /** * Merge existing config values with new config values * Priority: existing > new (preserve user customizations) */ export declare function mergeConfigs(existing: Partial> | null, newConfig: Record): Record; //# sourceMappingURL=config-parser.d.ts.map