import type { CustomSecretPattern, SecretMatch, SecretScanOptions, SecretScannerPort } from '../ports/guards.js'; /** Vendored pure-TS kubeconfig secret patterns from `@sentropic/agent-stats-core` (zero external deps). */ export declare const KUBECONFIG_PATTERNS: readonly CustomSecretPattern[]; export declare const formatSecretRedactionTag: (ruleId: string, secret: string) => string; /** Scan text against structured custom regex patterns; enforces global (`g`) flag and strips sticky (`y`). */ export declare const scanCustom: (text: string, patterns: readonly CustomSecretPattern[]) => SecretMatch[]; /** * Normalize matches into strictly disjoint ranges (`kept[i].end <= kept[i + 1].start`). * Merges any partial overlap (`m.start < prev.end`) into `[prev.start, Math.max(prev.end, m.end)]` * while keeping the earlier/higher-priority `ruleId` so reverse-offset slicing never corrupts output. */ export declare const dedupeRanges: (matches: readonly SecretMatch[]) => SecretMatch[]; /** Normalize & clamp match ranges to `[0, text.length]` as strictly disjoint intervals. */ export declare const normalizeSecretMatches: (text: string, matches: readonly SecretMatch[]) => SecretMatch[]; export declare const redactSecretMatches: (text: string, matches: readonly SecretMatch[]) => string; export declare const scanSecrets: (text: string, options?: SecretScanOptions) => SecretMatch[]; export declare class PureSecretScanner implements SecretScannerPort { private readonly defaultOptions; constructor(options?: SecretScanOptions); private mergeOptions; scanRaw(text: string, options?: SecretScanOptions): readonly SecretMatch[]; scan(text: string, options?: SecretScanOptions): readonly SecretMatch[]; } //# sourceMappingURL=secret-scanner.d.ts.map