/** Formato de visualización datetime 12h con segundos (Figma DatePicker — hora integrada). */ export declare const DATETIME_DISPLAY_FORMAT = "dd/MM/yyyy hh:mm:ss a"; export type Meridiem = 'AM' | 'PM'; /** Anchos inline para segmentos del campo (sin token de ancho en DS; unidades `ch`). */ export declare const INLINE_SEGMENT_WIDTH: { readonly twoDigit: "ui-w-[2ch]"; readonly fourDigit: "ui-w-[4ch]"; }; export interface DateTimeParts { day: string; month: string; year: string; hour12: string; minute: string; second: string; meridiem: Meridiem; } export type ParsedDateTimeInput = { kind: 'full'; date: Date; } | { kind: 'date-only'; date: Date; } | { kind: 'time-only'; date: null; time: Pick; } | { kind: 'invalid'; }; export declare const EMPTY_DATETIME_PARTS: DateTimeParts; /** Hora por defecto cuando el usuario no elige hora (12:00 AM en formato 12h). */ export declare const DEFAULT_TIME_PARTS: Pick; export declare const clampHour12: (value: number) => number; /** Minutos y segundos: 00–59 (estándar reloj; Figma no accesible — ver story). */ export declare const clampMinuteOrSecond: (value: number) => number; export declare const normalizeMeridiem: (value: string) => Meridiem; export declare const pad2: (value: number | string) => string; export declare const dateToParts: (date: Date, showSeconds?: boolean) => DateTimeParts; export declare const partsToDate: (parts: DateTimeParts, showSeconds?: boolean) => Date | null; export declare const formatDateTimeForInput: (date: Date | null, showSeconds?: boolean) => string; export interface FormatDisplayDateTimeOptions { showSeconds?: boolean; } /** * Formato de visualización read-only del campo principal (`showTime`). * Ejemplo: `15/07/2024 - 12:39 AM` o con segundos `15/07/2024 - 12:39:45 AM`. */ export declare const formatDisplayDateTime: (date: Date | null, options?: FormatDisplayDateTimeOptions) => string; /** Formato read-only de un rango con hora en cada extremo. */ export declare const formatDisplayDateTimeRange: (range: { start: Date | null; end: Date | null; }, options?: FormatDisplayDateTimeOptions) => string; export declare const mergeDateWithTimeParts: (baseDate: Date, time: Pick, showSeconds?: boolean) => Date; export declare const mergeTimePartsIntoDate: (existing: Date | null, time: Pick, showSeconds?: boolean) => Date | null; export declare const parseDateTimeInput: (input: string) => ParsedDateTimeInput; export declare const sanitizeNumericSegment: (raw: string, maxLength?: number) => string; export declare const sanitizeYearSegment: (raw: string) => string; //# sourceMappingURL=datetimeFormat.d.ts.map