import { ChangeEventHandler } from 'react'; import { TargetValue } from '../base-input/shared.js'; export type DatePickerElement = TargetValue; type SegmentProps = { value: string; onChange: ChangeEventHandler; }; export declare const useDatePickerInput: (incomingValue: Date | undefined, { name, onChange, withYear, withMonth, withDay, }?: { name?: string; onChange?: ChangeEventHandler; withYear?: Y; withMonth?: M; withDay?: D; }) => (Y extends true ? { yearProps: SegmentProps; } : object) & (M extends true ? { monthProps: SegmentProps; } : object) & (D extends true ? { dayProps: SegmentProps; } : object); export {};