import ' rollup-plugin-inject-process-env';
import { FC } from "react";
import { FormDateRangeInput } from "stentor-models";
import { FormFieldProps } from "../FormDisplay";
/**
* The value this field reports through onFieldChange, and the shape it accepts
* back as its initial value. Both halves are "YYYY-MM-DD" - what an
* reads and writes.
*/
export interface FormDateRangeValue {
from: string;
to: string;
}
export interface FormDateRangeProps extends FormFieldProps {
readonly field: FormDateRangeInput;
/**
* Initial value, so the field can be pre-populated or resumed. Dates may
* arrive as strings (stored form config is JSON) or as real Date objects.
*/
readonly value?: {
from?: string | Date;
to?: string | Date;
};
/**
* When this is the last field of the step the keyboard shows "done" rather than "next".
*/
readonly isLastField?: boolean;
}
export declare const FROM_LABEL = "From";
export declare const TO_LABEL = "To";
export declare const FormFieldDateRange: FC;
export default FormFieldDateRange;