export type PossibleDate = Date | string | number | null | undefined; export declare const CURRENT_YEAR: number; export declare function isDate(value: string): boolean; export declare function isModifiedDate(value: string): boolean; /** * Converts a formatted date string, time number, or Date object to a Date object * * @param input - A date represented as string or number, or a Date object * @returns - A Date object or null if the input is not a valid date */ export declare function toDate(input: PossibleDate): Date | null; /** * Returns a formatted date string in the user's locale * * @param input - A date represented as string or number, or a Date object * @param locale - The user's locale (default is navigator.languages) * @returns - A Intl formatted date time string */ export declare function getDateForLocale(input: PossibleDate, locale?: readonly string[]): string; /** * Returns a formatted time string in the user's locale * * @param input - A date represented as string or number, or a Date object * @param locale - The user's locale (default is navigator.languages) * @returns - A Intl formatted time string */ export declare function getTimeForLocale(input: PossibleDate, locale?: readonly string[]): string; /** * Returns a formatted date time string in the user's locale * * @param input - A date represented as string or number, or a Date object * @param locale - The user's locale (default is navigator.languages) * @returns - A formatted date time string or empty string if the input is not a valid date */ export declare function getDateTimeForLocale(input: PossibleDate, locale?: readonly string[]): string; /** * Returns a formatted date string in 'YYYY-MM-DD' format * * @param input - A date represented as string or number, or a Date object * @returns - A formatted date string or empty string if the input is not a valid date */ export declare function toDateString(input: PossibleDate): string; /** * Returns a formatted time string in 'HH:MM' format * * @param input - A date represented as string or number, or a Date object * @returns - A formatted time string or empty string if the input is not a valid date */ export declare function toTimeString(input: PossibleDate): string; /** * Returns a formatted date+time string in 'YYYY-MM-DD HH:MM' format * * @param input - A date represented as string or number, or a Date object * @returns - A formatted date time string or empty string if the input is not a valid date */ export declare function toDateTimeString(input: PossibleDate): string; export declare function toRelativeDate(date: string): string; export declare function sameDate(firstDate: Date, secondDate: Date): boolean; export declare function toWordyDate(date: Date): string; export declare function toFormatDateTime(possibleDate: PossibleDate, useTodayString?: boolean): string;