rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
18 lines • 917 B
TypeScript
/**
* Financial/ID Pattern Handlers
* Handles credit cards, SSN, postal codes, etc.
*/
import type { TextExtractionResult } from '../../types/index.js';
/**
* Parses text for common financial and government ID-related patterns.
*
* This function identifies patterns for Visa credit cards, Social Security Numbers (SSN),
* and US ZIP codes. It returns a structured result with the corresponding regex pattern,
* a confidence score, and a description.
*
* @param textForCapture - The natural language text to be analyzed for patterns.
* @param testValue - An optional string to test the generated pattern against for confidence scoring.
* @returns A `TextExtractionResult` object if a pattern is successfully parsed, otherwise `null`.
*/
export declare function parseFinancialPatterns(textForCapture: string, testValue?: string): TextExtractionResult | null;
//# sourceMappingURL=financialPatterns.d.ts.map