export declare const REDACTED_PATH = ""; export declare const REDACTED_VALUE = "[REDACTED]"; export declare const NO_STACK = ""; /** * Replace absolute paths with ``. Relative paths are left alone. */ export declare function redactAbsolutePaths(text: string): string; /** * Replace token-like values with `[REDACTED]`. */ export declare function redactTokenLikeValues(text: string): string; export declare function redactEnvLikeValues(text: string): string; export declare function redactTelemetryString(text: string): string; export declare function redactTelemetryString(text: unknown): unknown; /** * Reduce a stack trace to the error name and the first N frames (paths redacted). * Empty input returns ``. */ export declare function redactStackTrace(text: string, maxFrames?: number): string; export type RedactResult = { ok: true; value: unknown; notes: string[]; } | { ok: false; error: string; nextAction: string; }; /** * Recursively redact sensitive fields in an unknown value. * Never throws. Returns a structured result with notes describing what was redacted. * * ERR-002: returns `{ok:false,error,nextAction}` for non-object top-level input * because field redaction is a structured-data operation. Primitives carry no * fields; their values should be sanitized via `redactTokenLikeValues` / * `redactEnvLikeValues` / `redactAbsolutePaths` instead. */ export declare function redactSensitiveFields(value: unknown): RedactResult; //# sourceMappingURL=redact-sensitive.d.ts.map