import { AbstractInputProps } from "../../input"; import { ComponentProps, SyntheticEvent } from "react"; import { OmitInternalProps } from "../../shared"; import { ResponsiveProp } from "../../styling"; export interface DateRangePreset { endDate: Date; startDate: Date; text: string; } declare const DefaultElement = "div"; export 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; } export declare function InnerDateRangeInput(props: InnerDateRangeInputProps): JSX.Element; export declare namespace InnerDateRangeInput { var defaultElement: string; } /** * An specialized input to enter a range of dates. * * [Documentation](https://orbit.sharegate.design/?path=/docs/date-range-input--default-story) */ export declare const DateRangeInput: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type DateRangeInputProps = ComponentProps; export {};