import { type FC, type Ref } from 'react'; import type { DateFieldState, TimeFieldState } from '@react-stately/datepicker'; import type { GroupDOMAttributes } from '@react-types/shared'; import type { SvgIconProps } from '../../../icons'; import { type TemporalInputSize, type TemporalInputTimeProps } from '../../TemporalCore'; /** * Internal props — intentionally narrow. `TemporalInputCommonProps` is not * extended here because it pulls in `HTMLAttributes`, whose * `onAbort` handler collides with the one in `@react-types/shared`'s * `GroupDOMAttributes`. The outer `DateInput` / `TimeInput` wrappers own the * HTML-attribute surface; this internal only consumes the specific concerns * it actually renders. */ interface DateInputInternalProps extends GroupDOMAttributes, TemporalInputTimeProps { state: DateFieldState | TimeFieldState; icon?: FC; ref?: Ref; error?: boolean; disabled?: boolean; readOnly?: boolean; placeholder?: string; size?: TemporalInputSize; /** * Resolved hour cycle. The public `DateInput` / `TimeInput` wrappers read * this from `DateFormatProvider` and pass it down — it isn't a public * prop on those components. */ hourCycle?: 12 | 24; } export declare const DateInputInternal: FC; export {};