/** * date-format - a small .NET/Smart-style date format-token engine used for * `formatString` display and for parsing the masked DateTimePicker input. It is * locale-aware for names (month/weekday, AM/PM) via `Intl`, and framework-free. * * Supported tokens (case-sensitive, matching Smart's `formatString`): * d dd day of month (5, 05) * ddd dddd weekday name (Mon, Monday) [locale] * M MM month number (6, 06) * MMM MMMM month name (Jun, June) [locale] * yy yyyy year (26, 2026) * H HH hour 24 (7, 07) * h hh hour 12 (7, 07) * m mm minute * s ss second * f ff fff fractional seconds (tenths..millis) * t tt AM/PM designator (A, AM) [locale] * * Anything else is a literal. Wrap literal letters in single quotes ('T') or * escape with a backslash (\T) to keep them out of token matching. */ type Part = { token: string; } | { literal: string; }; /** Split a mask into an ordered list of token / literal parts. */ export declare function tokenizeMask(mask: string): Part[]; /** Render `date` per `mask` in `locale`. */ export declare function formatDate(date: Date, mask: string, locale?: string): string; /** * Parse `str` against `mask` in `locale`. Returns a Date or null if the string * does not satisfy the mask. `yearCutoff` disambiguates 2-digit years: values * <= (yearCutoff % 100) map to 2000s, above to 1900s (Smart's default 1926 -> * a 26 pivot). `base` supplies fields the mask omits (defaults to epoch-zero * local midnight so a time-only mask yields a today-agnostic time). */ export declare function parseDate(str: string, mask: string, locale?: string, yearCutoff?: number, base?: Date): Date | null; export {};