/** * Convert a string to a date. * @param date The date string to convert * @returns A Date object if the input is a valid date, null otherwise */ export default function toDate(date: string | number | Date): Date | null;