/** * High-performance native date parsing and formatting utilities * * Zero external dependencies. Optimized for CSV batch processing. * Uses character code operations and lookup tables for maximum speed. */ /** Supported date format strings */ export type DateFormat = "YYYY-MM-DD[T]HH:mm:ssZ" | "YYYY-MM-DD[T]HH:mm:ss" | "YYYY-MM-DD[T]HH:mm:ss.SSSZ" | "YYYY-MM-DD" | "YYYY-MM-DD HH:mm:ss" | "MM-DD-YYYY" | "MM-DD-YYYY HH:mm:ss" | "MM/DD/YYYY HH:mm:ss" | "DD-MM-YYYY" | "DD-MM-YYYY HH:mm:ss" | "DD/MM/YYYY HH:mm:ss"; /** * Optimized date parser for batch processing * * @example * const parser = DateParser.create(["YYYY-MM-DD"]); * const dates = parser.parseAll(csvStrings); */ export declare class DateParser { private readonly fns; private readonly single; private readonly fn0; private constructor(); /** Create parser for specific formats */ static create(formats: readonly DateFormat[]): DateParser; /** Create parser for auto-detecting ISO formats */ static iso(): DateParser; /** Parse single value */ parse: (value: string) => Date | null; /** Parse array of values */ parseAll(values: string[]): (Date | null)[]; /** Parse and filter valid dates */ parseValid(values: string[]): Date[]; } /** * Optimized date formatter for batch processing * * @example * const formatter = DateFormatter.create("YYYY-MM-DD", { utc: true }); * const strings = formatter.formatAll(dates); */ export declare class DateFormatter { private readonly fn; private constructor(); /** Create ISO formatter (fastest) */ static iso(utc?: boolean): DateFormatter; /** Create custom format formatter */ static create(format: string, options?: { utc?: boolean; }): DateFormatter; /** Generic formatter for arbitrary formats */ private static createGeneric; /** Format single date */ format: (date: Date) => string; /** Format array of dates */ formatAll(dates: Date[]): string[]; } /** Get supported format strings */ export declare function getSupportedFormats(): DateFormat[];