/** * Format keys that can be used in mask format */ export declare const FORMAT_KEYS: string[]; /** * Cell represents a single mask field or separator in the format */ export interface Cell { /** Text content of this cell */ text: string; /** Mask key if this is an editable field (e.g., 'YYYY', 'MM'), undefined for separators */ mask?: string; /** Start position in the format string */ start: number; /** End position in the format string */ end: number; } /** * Get valid range for a mask field * @param key Mask key (e.g., 'YYYY', 'MM', 'DD') * @returns [min, max] tuple */ export declare function getMaskRange(key: string): [number, number]; /** * MaskFormat class parses format string into cells for mask input */ export default class MaskFormat { /** All cells including separators */ cells: Cell[]; /** Only editable mask cells (excludes separators) */ maskCells: Cell[]; constructor(format: string); /** * Check if text matches this format * @param text Input text to validate * @returns true if text structure matches format */ match(text: string): boolean; }