import { PatternMatch } from '../../types'; /** * Common patterns used across languages */ /** * Number patterns */ export declare const NUMBER_PATTERNS: { DECIMAL: RegExp; AMOUNT: RegExp; PLAIN_AMOUNT: RegExp; }; /** * Date patterns (multiple formats) */ export declare const DATE_PATTERNS: { ISO: RegExp; DMY: RegExp; MDY: RegExp; CHINESE: RegExp; SHORT: RegExp; }; /** * Time patterns */ export declare const TIME_PATTERNS: { HOUR_24: RegExp; HOUR_12: RegExp; CHINESE: RegExp; }; /** * Receipt number patterns */ export declare const RECEIPT_NUMBER_PATTERNS: { ALPHANUMERIC: RegExp; NUMERIC: RegExp; WITH_PREFIX: RegExp; }; /** * Extract all matches for a pattern */ export declare function extractMatches(text: string, pattern: RegExp, confidence?: number): PatternMatch[]; /** * Normalize amount string to number */ export declare function normalizeAmount(amountStr: string): number; /** * Normalize date to ISO format (YYYY-MM-DD) */ export declare function normalizeDate(dateStr: string): string | null; /** * Normalize time to 24-hour format (HH:MM) */ export declare function normalizeTime(timeStr: string): string | null; //# sourceMappingURL=common.d.ts.map