/** * Parse a date string into a Date object. * * When a format string is provided, extracts date parts using the same tokens * as the format function (YYYY, MM, DD, HH, mm, ss, etc.). * * If the format includes a Z token, the parsed offset is applied so the * returned Date represents the correct instant in time. * * When no format is given, falls back to native Date parsing (with a fix * for date-only ISO strings being treated as local time, not UTC). */ export declare function parse(dateStr: string, formatStr?: string, _locale?: string): Date;