UNPKG

@himorishige/noren-core

Version:

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

68 lines 2.13 kB
/** * Constants for validation and false positive prevention * Contains test data, example patterns, and exclusion lists */ export declare const TEST_CREDIT_CARDS: Set<string>; export declare const NORMALIZED_TEST_CREDIT_CARDS: Set<string>; export declare const CREDIT_CARD_BRANDS: { visa: { pattern: RegExp; lengths: readonly number[]; }; mastercard: { pattern: RegExp; lengths: readonly number[]; }; amex: { pattern: RegExp; lengths: readonly number[]; }; discover: { pattern: RegExp; lengths: readonly number[]; }; jcb: { pattern: RegExp; lengths: readonly number[]; }; dinersclub: { pattern: RegExp; lengths: readonly number[]; }; maestro: { pattern: RegExp; lengths: readonly number[]; }; }; export declare const EXAMPLE_DOMAINS: Set<string>; export declare const NON_PII_EMAIL_PREFIXES: Set<string>; export declare const CONTEXT_KEYWORDS: { readonly email: Set<string>; readonly credit_card: Set<string>; }; export declare const NEGATIVE_CONTEXT_KEYWORDS: Set<string>; export declare const STRICTNESS_LEVELS: { readonly fast: { readonly description: "Maximum performance, minimal false positive filtering"; readonly contextRequired: false; readonly excludeTestData: false; readonly excludePrivateNetworks: false; readonly brandValidation: false; }; readonly balanced: { readonly description: "Good balance of performance and accuracy"; readonly contextRequired: false; readonly excludeTestData: true; readonly excludePrivateNetworks: false; readonly brandValidation: true; }; readonly strict: { readonly description: "Maximum accuracy, stricter validation"; readonly contextRequired: true; readonly excludeTestData: true; readonly excludePrivateNetworks: true; readonly brandValidation: true; }; }; export type StrictnessLevel = keyof typeof STRICTNESS_LEVELS; //# sourceMappingURL=constants.d.ts.map