import type { TimeAst } from './parser-types.js'; /** * Parse a time-of-day string from multiple common formats. * Supports: locale time ("9:07 AM"), 24h ("09:00", "14:30"), ISO 8601 basic format ("1430"), * short 24h ("9:00"), bare hours ("7", "7 AM"), and 12h with lowercase period ("9:07 am"). * * TAA (LLM) often generates time in 24h format ("09:00") instead of the locale * format ("9:00 AM") that Luxon's 't' token expects. * * Supported formats: * - Locale time (12-hour with AM/PM): "9:07 AM", "2:30 PM", "02:30PM", "2:30 p.m." * - 24-hour format (extended): "09:00", "14:30", "23:59" * - ISO 8601 basic format (compact): "1430", "0900", "143045", "143045.123" * - Short 24-hour (single digit hour): "9:00", "9:30" * - Bare hours (defaults to :00): "7" (→ 7:00), "0" (→ 0:00), "7 AM" (→ 7:00 AM) * - Lowercase am/pm: "9:07 am", "2:30 pm" * - With optional seconds: "2:30:45 PM", "14:30:45" * - With optional fractional seconds: "2:30:45.123 PM", "14:30:45.123" * * Returns a TimeAst object compatible with Temporal.PlainTime.from() * * @param input - The time string to parse * @returns TimeAst object with hour, minute, and optional second/fraction * @throws ParseError if the input is invalid */ export declare function parseTimeString(input: string): TimeAst; //# sourceMappingURL=parseTimeString.d.ts.map