/**
 * Sensitive Data Redaction Utilities
 *
 * Provides deep redaction of sensitive data in objects and arrays.
 * Supports configurable sensitive field patterns and custom redaction functions.
 *
 * @packageDocumentation
 */
/**
 * Redaction configuration
 */
export interface RedactionConfig {
    /** Custom sensitive field patterns */
    sensitivePatterns?: RegExp[];
    /** Replacement value for redacted fields */
    replacement?: string;
    /** Maximum depth for nested redaction */
    maxDepth?: number;
    /** Whether to preserve field type indicators */
    preserveType?: boolean;
    /** Custom redaction function for specific fields */
    customRedactor?: (key: string, value: unknown) => unknown;
    /** Fields to explicitly allow (whitelist) */
    allowedFields?: string[];
}
/**
 * Deep clone and redact sensitive data from an object
 */
export declare function redact<T>(data: T, config?: RedactionConfig): T;
/**
 * Redact sensitive data from a string (e.g., log message)
 */
export declare function redactString(text: string, config?: Partial<RedactionConfig>): string;
/**
 * Create a redactor with preset configuration
 */
export declare function createRedactor(config?: RedactionConfig): {
    redact: <T>(data: T) => T;
    redactString: (text: string) => string;
};
/**
 * Safely stringify an object with redaction
 */
export declare function safeStringify(data: unknown, config?: RedactionConfig, space?: number): string;
/**
 * Export default patterns for customization
 */
export declare const SENSITIVE_PATTERNS: RegExp[];
//# sourceMappingURL=redaction.d.ts.map