import { TrustLevel } from '../entities/trust-level.js'; export type PIIType = 'email' | 'ssn' | 'credit_card' | 'api_key' | 'password' | 'name' | 'address' | 'phone' | 'ip_address' | 'jwt' | 'aws_key' | 'private_key' | 'database_url' | 'github_token'; export type PIIAction = 'block' | 'redact' | 'hash' | 'pass'; export interface PIIDetection { readonly type: PIIType; readonly value: string; readonly confidence: number; readonly offset: number; readonly context: string; } export interface PIIPolicyConfig { defaultAction: PIIAction; overrides: Partial>; }>>; hashAlgorithm: 'sha256' | 'blake3'; hashSalt: string; redactionPlaceholder: string; } export interface PIICalibration { type: PIIType; falsePositiveRate: number; falseNegativeRate: number; adjustedThreshold: number; totalOverrides: number; lastCalibrated: string; } export interface PIITransformResult { readonly originalText: string; readonly transformedText: string; readonly detections: readonly PIIDetection[]; readonly actionsApplied: readonly { type: PIIType; action: PIIAction; }[]; readonly blocked: boolean; } export interface PIIConfidenceThresholds { autoBlock: number; autoRedact: number; flagForReview: number; ignore: number; } export interface PIIPipelineServiceDeps { hashFunction: (value: string, salt: string) => string; } export declare class PIIPipelineService { private readonly deps; private readonly policy; private readonly calibrations; private readonly confidenceThresholds; constructor(deps: PIIPipelineServiceDeps, policy?: Partial, confidenceThresholds?: Partial); detect(text: string): PIIDetection[]; classify(detections: PIIDetection[]): Map; evaluate(detection: PIIDetection, trustLevel: TrustLevel): PIIAction; transform(text: string, trustLevel: TrustLevel): PIITransformResult; updateCalibration(type: PIIType, calibration: PIICalibration): void; getCalibration(type: PIIType): PIICalibration | undefined; private computeConfidence; private getEffectiveThreshold; static defaultPolicy(): PIIPolicyConfig; static defaultPolicyMatrix(): Record>; } //# sourceMappingURL=pii-pipeline-service.d.ts.map