import type { GuardConfig } from '../config.js'; import type { Logger, Redactor } from '../contracts.js'; import { createPseudonymizer } from '../pseudonym/index.js'; import { resetSecretPlaceholderState } from './placeholders.js'; import { SECRET_RULES } from './rules.js'; export { createPseudonymizer, resetSecretPlaceholderState, SECRET_RULES }; export type { Pseudonymizer } from '../pseudonym/index.js'; export type { PseudonymizerOptions } from '../pseudonym/index.js'; export type { CompiledSecretRule } from './rules.js'; export interface RedactorOptions { config: GuardConfig; /** Explicit PII key file; wins over `config.pii.keyFile`. */ keyPath?: string; logger?: Logger; /** Home directory used by `~` expansion and the default `$DSH_HOME`. */ home?: string; /** Environment used to resolve `$DSH_HOME`. */ env?: NodeJS.ProcessEnv; } /** * Resolve the PII key file: explicit `keyPath`, then `config.pii.keyFile`, * then `$DSH_HOME/sensitive-guard-pii.key` (`~/.dsh` when unset). */ export declare function resolvePiiKeyPath(options: RedactorOptions): string; /** Create the text/value/content redactor for one guard config. */ export declare function createRedactor(options: RedactorOptions): Redactor; //# sourceMappingURL=index.d.ts.map