import type { SKYKOIConfig } from "./types.js"; export type ConfigSanitizeWarning = { kind: "unknown-key" | "invalid-value"; path: string; message: string; }; export type SanitizeConfigResult = { ok: true; config: SKYKOIConfig; warnings: ConfigSanitizeWarning[]; } | { ok: false; reason: string; }; /** * Repair a strict-parse failure in memory. Returns the sanitized config plus a * warning per skipped entry, or `ok: false` when the config is not repairable * this way (root is not an object, or removal cannot converge — e.g. a failed * refinement with no deletable path). */ export declare function sanitizeInvalidConfig(raw: unknown): SanitizeConfigResult;