import type { TraceEnvelope } from './types.ts'; export interface RedactionOptions { enabled?: boolean; /** Custom regex sources applied as redaction rules, e.g. ["\\b[A-Z0-9]{12}\\b"] */ rules?: string[]; /** File-system roots whose absolute paths are redacted, e.g. ["/home/me", "C:\\\\Users\\\\me"] */ paths?: string[]; } /** * Strips PII and secrets from trace payload text before it is persisted. * Enabled by default with built-in rules; opt out via * `.agenthood/config.json` (`observability.redaction.enabled = false`). * Replacements use a deterministic placeholder so replay-based evaluation * keeps reproducible inputs. */ export declare class RedactionFilter { private readonly options; private readonly rules; constructor(options?: RedactionOptions); enabled(): boolean; /** Redacts a single text payload; returns it untouched when disabled. */ redactText(text: string): string; redact(envelope: TraceEnvelope): TraceEnvelope; private redactMetadata; private redactValue; private applyRules; } /** * Builds a RedactionFilter from a parsed `.agenthood/config.json` * `observability.redaction` block. Returns undefined when the block is absent. */ export declare function createRedactionFilterFromConfig(raw: unknown): RedactionFilter | undefined; //# sourceMappingURL=RedactionFilter.d.ts.map