import { type AnyToken, type Token } from './lexer-types.js'; /** * Combine numeric timezone offsets into single tokens for easier parsing. * This is an optional post-processing step for the lexer output. * * Combines patterns like: * - (+|-) Number Colon Number => +08:00, -05:30 * - (+|-) Number (2 or 4 digits) => +09, -0530 * * Only combines when context suggests a timezone offset (after time components), * NOT after: * - Z (mutually exclusive per ISO 8601) * - brackets (offset comes BEFORE brackets per RFC 9557/IXDTF) * - standalone dates (e.g., 2025-01 where - is a date separator) * * @param tokens - The raw token array from lexTemporal * @returns Array of tokens (either original Token or combined CombinedToken with TZOffset type where applicable) * * @example * ```typescript * const raw = lexTemporal('10:00:00+08:00'); * const combined = combineTimezoneOffsets(raw); * // Result includes: { type: 'TZOffset', value: '+08:00' } * ``` */ export declare function combineTimezoneOffsets(tokens: Token[]): AnyToken[]; //# sourceMappingURL=combineTimezoneOffsets.d.ts.map