import type { RedactionCategory } from './patterns'; import type { BuiltGuardrail, PiiDetectionType } from '../../types'; export declare const DEFAULT_PLACEHOLDER = "[REDACTED]"; export interface RedactionOptions { secrets?: boolean; detect?: readonly PiiDetectionType[]; placeholder?: string; preserveUrlStructure?: boolean; redactSensitiveKeys?: boolean; } export interface RedactionResult { text: string; matches: Array<{ category: RedactionCategory; }>; } export declare function redactionOptionsFromGuardrail(guardrail: BuiltGuardrail): RedactionOptions; export declare function redactText(input: string, opts?: RedactionOptions): RedactionResult; export declare function findMatchRanges(input: string, opts?: RedactionOptions): Array<[number, number]>; export interface DeepRedactionResult { value: unknown; matches: Array<{ category: RedactionCategory; }>; } export declare function redactDeep(value: unknown, opts?: RedactionOptions, depth?: number): DeepRedactionResult;