/**
 * ╔══════════════════════════════════════════════════════════════════════╗
 * ║   OVERMIND BRIDGE — JSON Sanitizer (Windows Path Rescue)            ║
 * ║                                                                      ║
 * ║   Répare les payloads JSON mal échappés contenant des chemins       ║
 * ║   Windows (ex: `C:\Users\Deamon\file.txt` qui casse le JSON si       ║
 * ║   pas double-échappé). Pattern inspiré de bt-sms.                   ║
 * ║                                                                      ║
 * ║   Le problème : un client envoie un body qui contient               ║
 * ║   `"path": "C:\Users\Deamon\file.txt"` — l'antislash devant `U`     ║
 * ║   est interprété comme un caractère d'échappement JSON invalide.    ║
 * ║                                                                      ║
 * ║   La solution : un sanitizer state-machine qui :                     ║
 * ║     - Détecte si on est dans une string                             ║
 * ║     - Double les `\` qui ne sont pas suivis d'un char d'échappement  ║
 * ║     - Préserve le contenu légitime                                   ║
 * ╚══════════════════════════════════════════════════════════════════════╝
 */
/**
 * Tente de réparer un JSON malformé contenant des chemins Windows non échappés.
 * Retourne le JSON parsé, ou throw si irrécupérable.
 */
export declare function sanitizeAndParse(rawBody: string): unknown;
/**
 * State-machine qui double les `\` non-échappés dans les strings JSON.
 * Préserve les séquences d'échappement valides (\n, \t, \\, \", etc.)
 */
export declare function sanitizeJsonRaw(rawBody: string): string;
/**
 * Détecte si un body est probablement cassé par des Windows paths non échappés.
 * Heuristique simple : présence de `:\` dans le body.
 */
export declare function looksLikeWindowsPathIssue(rawBody: string): boolean;
//# sourceMappingURL=JsonSanitizer.d.ts.map