import * as react from 'react'; import { SyntheticEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ResponsiveProp } from '../../styling/src/useResponsiveValue.js'; import { OmitInternalProps } from '../../shared/src/types.js'; import { AbstractInputProps } from '../../input/src/types.js'; import '../../styling/src/BreakpointProvider.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 '../../group/src/Group.js'; import '../../layout/src/Flex.js'; interface DateRangePreset { endDate: Date; startDate: Date; text: string; } declare const DefaultElement = "div"; interface InnerDateRangeInputProps extends Omit, "max" | "min"> { /** * The initial value of start date. */ defaultStartDate?: Date; /** * The initial value of end date. */ defaultEndDate?: Date; /** * A controlled start date value. */ startDate?: Date | null; /** * A controlled end date value. */ endDate?: Date | null; /** * Whether or not the input is disabled. */ disabled?: boolean; /** * 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; /** * @ignore */ name?: string; /** * Called when the date(s) are / is applied. * @param {SyntheticEvent} event - React's original event. * @param {Object} startDate - Selected start date. * @param {Object} endDate - Selected end date. * @returns {void} */ onDatesChange?: (event: SyntheticEvent, startDate: Date, endDate: Date) => void; /** * Temporary text that occupies both date inputs when they are empty. */ placeholder?: string; /** * Array of pre-determined dates range. */ presets?: DateRangePreset[]; /** * The presets style to use. */ presetsVariant?: "compact" | "expanded"; /** * Whether or not the input is readonly. */ readOnly?: boolean; } declare function InnerDateRangeInput(props: InnerDateRangeInputProps): react_jsx_runtime.JSX.Element; declare namespace InnerDateRangeInput { var defaultElement: string; } /** * An specialized input to enter a range of dates. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/date-range-input--default-story) */ declare const DateRangeInput: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type DateRangeInputProps = ComponentProps; export { DateRangeInput, type DateRangeInputProps, type DateRangePreset, InnerDateRangeInput, type InnerDateRangeInputProps };