import { Params } from '@zag-js/core'; import { c as DateInputSchema, I as IncompleteDate, e as DateSegment, s as SelectionMode } from '../date-input.types-B8-pXTYf.mjs'; import '@internationalized/date'; import '@zag-js/date-utils'; import '@zag-js/live-region'; import '@zag-js/types'; /** A segment is focusable (gets a spinbutton role + tab stop) when it's not a layout literal. */ declare const isFocusableSegment: (segment: DateSegment) => boolean; declare function getGroupCount(selectionMode: SelectionMode): number; /** * Returns the cumulative segment count for all groups before `index`. * Used to convert between global (DOM) and local (per-group) segment indices. */ declare function getGroupOffset(allSegments: unknown[][], index: number): number; /** * Resolves the active segment context: all segment groups, the current group, * the global-to-local offset, and the local index within the group. */ declare function resolveActiveSegment(ctx: Params): { allSegments: DateSegment[][]; segments: DateSegment[]; offset: number; localIndex: number; }; declare function getActiveSegment(ctx: Params): DateSegment; type SegmentPredicate = (segment: DateSegment) => boolean; declare function goToNextSegment(ctx: Params, predicate?: SegmentPredicate): void; declare function goToPreviousSegment(ctx: Params, predicate?: SegmentPredicate): void; /** Returns the IncompleteDate for the currently active group. */ declare function getActiveDisplayValue(ctx: Params): IncompleteDate; /** Replaces the IncompleteDate for the given group index and persists it. */ declare function setDisplayValue(ctx: Params, index: number, dv: IncompleteDate): void; export { getActiveDisplayValue, getActiveSegment, getGroupCount, getGroupOffset, goToNextSegment, goToPreviousSegment, isFocusableSegment, resolveActiveSegment, setDisplayValue };