import type { AnnotationAst, DateAst, DateTimeAst, DurationAst, OffsetAst, RangeAst, TemporalAst, TimeAst, TimeZoneAst } from './parser-types.js'; /** * Convert a temporal AST back to its string representation. * * @param ast - The AST to stringify * @returns ISO 8601 / IXDTF formatted string * * @example * ```typescript * const ast = parseTemporal('2025-01-12T10:00:00+08:00'); * const str = stringifyTemporal(ast); * // '2025-01-12T10:00:00+08:00' * ``` */ export declare function stringifyTemporal(ast: TemporalAst): string; /** * Stringify a date AST to ISO 8601 format. * * @param date - The date AST * @returns Date string (YYYY, YYYY-MM, or YYYY-MM-DD) */ export declare function stringifyDate(date: DateAst): string; /** * Stringify a time AST to ISO 8601 format. * * @param time - The time AST * @returns Time string (HH:MM, HH:MM:SS, or HH:MM:SS.fff) */ export declare function stringifyTime(time: TimeAst): string; /** * Stringify a timezone offset AST to canonical format. * * @param offset - The offset AST * @returns Offset string in canonical format (Z or ±HH:MM) */ export declare function stringifyOffset(offset: OffsetAst): string; /** * Stringify a timezone AST. * * @param timeZone - The timezone AST * @returns Timezone string [Asia/Singapore] or [!Asia/Singapore] */ export declare function stringifyTimeZone(timeZone: TimeZoneAst): string; /** * Stringify an annotation AST. * * @param annotation - The annotation AST * @returns Annotation string [u-ca=gregory] or [!u-ca=gregory] */ export declare function stringifyAnnotation(annotation: AnnotationAst): string; /** * Stringify a datetime AST to ISO 8601 / IXDTF format. * * @param dateTime - The datetime AST * @returns DateTime string with optional time, offset, timezone, and annotations */ export declare function stringifyDateTime(dateTime: DateTimeAst): string; /** * Stringify a duration AST to ISO 8601 format. * * @param duration - The duration AST * @returns Duration string (P1Y2M3DT4H5M6S) */ export declare function stringifyDuration(duration: DurationAst): string; /** * Stringify a range AST to ISO 8601 format. * * @param range - The range AST * @returns Range string (start/end, /end, or start/) */ export declare function stringifyRange(range: RangeAst): string; //# sourceMappingURL=stringify.d.ts.map