UNPKG

@himorishige/noren-core

Version:

Core PII detection, masking, and tokenization library built on Web Standards

14 lines 527 B
import type { Detector, Masker } from './types.js'; export interface LazyPlugin { detectors?: () => Promise<Detector[]>; maskers?: () => Promise<Record<string, Masker>>; contextHints?: () => Promise<string[]>; } export interface LoadedPlugin { detectors: Detector[]; maskers: Record<string, Masker>; contextHints: string[]; } export declare function loadPlugin(name: string, plugin: LazyPlugin): Promise<LoadedPlugin>; export declare function clearPluginCache(): void; //# sourceMappingURL=lazy.d.ts.map