/** * Redact secrets from log strings and structured payloads before they reach sinks. */ /** Register a staged runtime secret for defense-in-depth scrubbing in logs and outputs. */ export declare function registerRuntimeSecret(secret: string): void; /** Unregister a staged runtime secret once expired or consumed/disposed. */ export declare function unregisterRuntimeSecret(secret: string): void; /** Clear all runtime secrets (for test isolation). */ export declare function clearRuntimeSecretsForTests(): void; /** Return whether any staged runtime secrets are currently registered for scrubbing. */ export declare function hasRegisteredRuntimeSecrets(): boolean; /** Return whether a specific runtime secret is currently registered for scrubbing. */ export declare function hasRegisteredRuntimeSecret(secret: string): boolean; /** Scrub any registered runtime secrets from `text`, replacing matches with `[REDACTED]`. */ export declare function scrubRuntimeSecrets(text: string): string; export declare function isLogRedactionEnabled(): boolean; export declare function redactSecret(secret: string): string; export declare function redactPemBlock(text: string): string; export declare function redactSensitiveInfo(text: string): string; /** Redact model-visible and persisted tool output without retaining secret fragments. */ export declare function redactSensitiveOutput(text: string): string; export declare function redactObject(obj: unknown, depth?: number): unknown; /** * Apply redaction to a pino log object (mutates a shallow clone safe for return). */ export declare function redactLogRecord(object: Record): Record;