declare const REDACTED = "[REDACTED]";
/**
 * Redact credentials from a URL while retaining its origin, path, and query parameter
 * names. Query values and fragments are intentionally never considered safe for logs.
 */
export declare function redactUrl(value: URL | string): string;
/** Redact URLs, authorization values, and secret-like assignments in arbitrary text. */
export declare function redactString(value: string): string;
/**
 * Convert an arbitrary value into an acyclic, bounded, secret-redacted representation
 * suitable for console, file, and error logs.
 */
export declare function sanitizeForLogging(value: unknown): unknown;
/** Safely serialize arbitrary log metadata after redaction. */
export declare function safeStringifyForLogging(value: unknown, space?: number): string;
export { REDACTED };
//# sourceMappingURL=redaction.d.ts.map