import * as react from 'react'; import { ChangeEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { BoxProps } from '../../box/src/Box.js'; import { OmitInternalProps } from '../../shared/src/types.js'; import { ResponsiveProp } from '../../styling/src/useResponsiveValue.js'; import { AbstractInputProps } from '../../input/src/types.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; import '../../styling/src/BreakpointProvider.js'; import '../../group/src/Group.js'; import '../../layout/src/Flex.js'; interface DatePreset { date: Date; text: string; } declare const DefaultElement = "input"; interface InnerDateInputProps extends Omit, "defaultValue" | "max" | "min" | "value"> { /** * The default value of `value` when uncontrolled. */ defaultValue?: Date; /** * Whether or not the input take up the width of its container. */ fluid?: ResponsiveProp; /** * The maximum (inclusive) date. */ max?: Date; /** * The minimum (inclusive) date. */ min?: Date; /** * Called when the date change. * @param {ChangeEvent} event - React's original synthetic event. * @param {object} date - The new date value. * @returns {void} */ onDateChange?: (event: ChangeEvent, date: Date) => void; /** * Array of pre-determined dates. */ presets?: DatePreset[]; /** * The presets style to use. */ presetsVariant?: "compact" | "expanded"; /** * A controlled value. */ value?: Date | null; /** * Additional props to render on the wrapper element. */ wrapperProps?: Partial; } declare function InnerDateInput({ as, defaultValue, disabled, fluid, forwardedRef, onDateChange, placeholder, presets, presetsVariant, readOnly, value: valueProp, wrapperProps, ...rest }: InnerDateInputProps): react_jsx_runtime.JSX.Element; declare namespace InnerDateInput { var defaultElement: string; } /** * An input to enter a single date value. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/date-input--default-story) */ declare const DateInput: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type DateInputProps = ComponentProps; export { DateInput, type DateInputProps, type DatePreset, InnerDateInput, type InnerDateInputProps };