/** * Redaction/detection primitives shared by the redactor (`redactSensitive`) and * the structural scanner (`scanArtifactsForUnredactedSecrets`) so the two * recognise the same shapes and cannot drift. In particular, browser-cookie * detection is centralised here: it must be property-order independent (a * value-last cookie is still a cookie) and must not misfire on ordinary * `{ name, value, path }` structures. */ /** * Matches any run of backslashes preceding a quote. A JSON string nested inside * another escapes its quotes once per level of nesting (`"` → `\"` → `\\\"` → * …), so the escape prefix grows without bound; matching an arbitrary run makes * the patterns escape-depth agnostic. */ export declare const ESC = "(?:\\\\)*"; /** A JSON double-quote at any escape depth. */ export declare const QUOTE = "(?:\\\\)*\""; /** The marker a redacted value is reduced to. */ export declare const REDACTED = "***"; /** Redacts the `value` of every browser-cookie object found in `text`. */ export declare const redactCookieValues: (text: string) => string; /** * The `value` of every browser-cookie object in `text` (after any redaction has * run). The structural scanner treats a cookie whose value is not `REDACTED` as * a leak. * * @param text - Text to inspect (a trace stream, resource body, or plain file). * @returns {Array} One entry per cookie `value` found. */ export declare const cookieValues: (text: string) => Array;