/** * Pattern-based secret detectors (stage-0 redaction, SEC-3/5, spec §4.2). * * Each detector is a regex run with the `d` (hasIndices) flag so that, when * `valueGroup` is set, we can redact JUST the captured secret value and keep * the surrounding key name / scheme intact (e.g. `Password=` stays, only the * value after it is replaced). */ export interface PatternDetector { type: string; /** Regex WITHOUT the 'g'/'d' flags — added automatically at match time. */ source: string; flags: string; /** Capture group index to redact instead of the whole match (1-based). */ valueGroup?: number; /** * Optional post-match guard on the captured value (or whole match, when * `valueGroup` is unset). Return false to discard the match entirely — * used by the compound-label credential detector (FEAT-459) to reject * pure-numeric/boolean values on its widened, lower-precision matches. */ valueFilter?: (value: string) => boolean; } export declare const PEM_DETECTOR: PatternDetector; /** * Any recognized quote-like character — the two straight ASCII quotes plus * the four common Unicode "smart"/curly quote code points (FEAT-473: * U+2018/U+2019 single left/right, U+201C/U+201D double left/right). Used * wherever this file only needs "some quote character sits here", not which * exact one or which side of a pair it is (the label's closing quote right * before the `:`/`=>` separator, and the bare-value negative-lookahead * guard below) — a word processor or chat client can auto-curl either side * of a pasted quote independently of the other, so these two positions are * deliberately permissive across the whole set rather than trying to pair * open/close by direction. Exported so `entropy.ts`'s `LABEL_PREFIX_RE` * (FEAT-468) shares this exact set instead of maintaining a second copy * that could silently drift out of sync with this one. */ export declare const ANY_QUOTE_CHAR = "[\"'\u2018\u2019\u201C\u201D]"; export declare const PATTERN_DETECTORS: PatternDetector[]; /** Build a `custom` detector from a user-supplied regex source string. */ export declare function customDetector(source: string): PatternDetector;