import { ComponentProps } from "react";
import { AnswerByField, GenericFormFieldProps } from "../../FormField.types";
import Input from "../../../../Input";
/**
 * Allows inputing a date
 **/
export default function dateFieldFactory(dateFormat: string): ({ onAnswer, question, value, error, ...input }: GenericFormFieldProps<"date"> & Pick<ComponentProps<typeof Input>, "data-testid" | "placeholder">) => import("react/jsx-runtime").JSX.Element;
export declare const dateFieldValidatorFactory: (invalidDateLabel: string, requiredFieldLabel: string, format: string) => (answer: AnswerByField<{
    type: "date";
}>) => {
    isValid: any;
    error: any;
};
