/** * Redact common secret-bearing substrings from text while preserving surrounding context. * * @param value - Text that may contain synthetic or real credential patterns. * @returns Text with credential values replaced by deterministic placeholders. * * @example * ```typescript * redactTextSecrets('OPENAI_API_KEY=sk-test-123') * // 'OPENAI_API_KEY=[REDACTED:API_KEY]' * ``` */ export declare function redactTextSecrets(value: string): string; /** * Clone a value and redact configured boundary fields without mutating the caller object. * * @typeParam T - Value shape to clone and redact. * @param value - Object, array, or primitive crossing a persistence/output boundary. * @param options - Field names to redact as text plus optional fields to preserve. * @returns A redacted clone with the same JSON shape. * * @example * ```typescript * const safe = redactBoundaryFields({ result: 'TOKEN=abc', id: 'del-1' }, { * redactFieldNames: ['result'], * }) * // { result: 'TOKEN=[REDACTED:TOKEN]', id: 'del-1' } * ``` */ export declare function redactBoundaryFields(value: T, options: { redactFieldNames: readonly string[]; preserveFieldNames?: readonly string[]; }): T; //# sourceMappingURL=redaction.d.ts.map