import type { Logger } from '../contracts.js'; /** Keyed pseudonymizer used for PII categories. */ export interface Pseudonymizer { /** Return the stable `[[PII__]]` placeholder for one value. */ id(type: string, value: string): string; /** * Resolve a placeholder minted in this process. Only populated when * `record` is enabled (the `pii.restore` opt-in); the map is memory-only. */ get(placeholder: string): string | undefined; } export interface PseudonymizerOptions { /** Explicit 32-byte key; wins over `keyPath`. */ key?: Buffer; /** Key file path; missing files are created with mode 0600. */ keyPath?: string; logger?: Logger; /** Keep a process-memory placeholder → original map for `/guard restore`. */ record?: boolean; } /** Normalize a PII value before hashing; category-specific by design. */ export declare function normalizePiiValue(type: string, value: string): string; /** `phone-cn` -> `PHONE_CN`; non-alphanumerics become underscores. */ export declare function piiTypeLabel(type: string): string; /** Build the keyed placeholder from an already-resolved key. */ export declare function piiPlaceholder(type: string, value: string, key: Buffer): string; /** * Resolve the HMAC key: explicit key, key file (read/create), or a shared * process-random key when neither is available. */ export declare function resolvePiiKey(options?: PseudonymizerOptions): Buffer; /** Create a synchronous keyed pseudonymizer. */ export declare function createPseudonymizer(options?: PseudonymizerOptions): Pseudonymizer; //# sourceMappingURL=index.d.ts.map