UNPKG

rgex

Version:

A powerful, chainable regex builder platform with comprehensive validation utilities

19 lines 787 B
/** * Phone Pattern Handlers * Handles various phone number pattern variations */ import type { TextExtractionResult } from '../../types/index.js'; /** * Parses text for phone number patterns and returns a corresponding regex. * * It understands phrases like: * - "us phone number" * - "phone with dashes" * - "phone with country code" / "international phone" * * @param textForCapture The text to parse for phone number patterns. * @param testValue Optional string to test the generated regex against for confidence scoring. * @returns A `TextExtractionResult` object if a pattern is found, otherwise `null`. */ export declare function parsePhonePatterns(textForCapture: string, testValue?: string): TextExtractionResult | null; //# sourceMappingURL=phonePatterns.d.ts.map