import type { DateGranularity, DatePartType, IntlLocale } from './types'; export type DateSegmentType = DatePartType | 'literal'; /** @experimental Segment model reserved for a future segment-editor field. */ export type DateSegmentModel = { type: DateSegmentType; /** Visible text for literals; numeric string for editable segments. */ value: string; placeholder: string; isPlaceholder: boolean; editable: boolean; }; /** * Builds locale-ordered date segments from `Intl.DateTimeFormat.prototype.formatToParts()`. * * @remarks Mirrors the React Aria `DateInput` segment list — literals plus editable fields. * @experimental Reserved for a future segment-editor field. */ export declare function buildDateSegments(date: Date | null, locale: IntlLocale, options?: { granularity?: DateGranularity; placeholderDate?: Date; }): DateSegmentModel[]; /** * Converts editable segment values into a local calendar `Date`, or `null` when incomplete. * * @experimental Reserved for a future segment-editor field. */ export declare function segmentsToDate(segments: DateSegmentModel[]): Date | null; /** @experimental Reserved for a future segment-editor field. */ export declare function getEditableSegmentIndices(segments: DateSegmentModel[]): number[]; export declare function maxSegmentLength(type: DatePartType): number; export declare function clampSegmentValue(type: DatePartType, raw: string): string; export declare function incrementSegment(type: DatePartType, value: string, delta: number): string;