import { FocusEvent } from "react";
import * as _$_emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";

//#region src/components/BirthdayInput.d.ts
interface BirthdayInputProps {
  date: string;
  invalidBirthdayError: string;
  setDate: (date: string) => void;
  dateFormat?: "US" | "INTL";
  onFocus?: (event: FocusEvent<HTMLInputElement, Element>) => void;
  onError?: (error: string) => void;
}
/**
 * Formats a birthday string.  Will return undefined if the birthday is not valid.
 * @param dayOrDate - The day or date to format
 * @param month - The month to format
 * @param year - The year to format
 * @param dateFormat - The format to use ("US" or "INTL")
 * @returns The formatted birthday string
 */
declare function formatBirthday(dayOrDate: string, month?: string, year?: string, dateFormat?: "US" | "INTL"): string | undefined;
/**
 * Valides a date string.  the required format is MM/DD/YYYY or DD/MM/YYYY, or the components can be passed in separately.
 * @param dayOrDate - The day or date to check
 * @param month - The month to check
 * @param year - The year to check
 * @param dateFormat - The format to use ("US" or "INTL")
 * @returns Whether the birthday is valid
 */
declare function isValidBirthday(dayOrDate: string, month?: string, year?: string, dateFormat?: "US" | "INTL"): boolean;
declare function formatDateToText(dateStr: string, dateFormat?: "US" | "INTL"): string;
declare function BirthdayInput({
  date,
  setDate,
  invalidBirthdayError,
  dateFormat,
  onFocus,
  onError
}: BirthdayInputProps): _$_emotion_react_jsx_runtime0.JSX.Element;
//#endregion
export { BirthdayInput, formatBirthday, formatDateToText, isValidBirthday };