import { DateTime } from 'luxon'; export declare function formatDateLong(value: any): string; export declare function formatDate(value: any, formatStr?: string): string; export declare function getDaysDiff(dateOne: any, dateTwo: any): number; /** * Creates a Date object based on an ISO 8601 date string. * @param dateString A ISO 8601 date string. EX: yyyy-MM-ddThh:mm:ss[Z|offset] * @returns A date object, or null if the format was invalid. */ export declare const getDateFromString: (dateString: any) => Date; /** * Formats a date string by converting it to a date in the specified time zone, * stripping out the time element and returning a localized date string. * @param date A Date or ISO 8601 date string. EX: yyyy-MM-ddThh:mm:ss[Z|offset] * @param timeZone An IANA time zone id. If supplied, convert the date into the specified time zone, * otherwise convert to local browser time. * @returns A date string without time based on the supplied time zone and the * user's browser locale settings. */ export declare const getLocalizedDateString: (date: any, timeZone?: string) => string; /** * Converts a date string to a date in the specified timezone, * and returning a converted date with the localized date and time. * @param date A Date or ISO 8601 date string. EX: yyyy-MM-ddThh:mm:ss[Z|offset] * @param timeZone If supplied, convert the date into the specified IANA time zone, * otherwise convert to local browser time. * @returns A converted date and time based on the user's browser locale settings. */ export declare const getLocalizedDateTime: (date: any, timeZone?: string) => "" | DateTime | DateTime; /** * Formats a date string by converting it to a date in the specified timezone, * and returning a string with the localized date and time. * @param date A Date or ISO 8601 date string. EX: yyyy-MM-ddThh:mm:ss[Z|offset] * @param delimiter If supplied, split the date and time by this string when returned. * @param timeZone If supplied, convert the date into the specified IANA time zone, * otherwise convert to local browser time. * @returns A date and time string based on the user's browser locale settings. */ export declare const getLocalizedDateTimeString: (date: any, delimiter?: any, timeZone?: string, includeOffset?: boolean) => string; /** * Formats a date string by converting it to a date in the specified time zone, * and returning a string as the localized time. * @param date A Date or ISO 8601 date string. EX: yyyy-MM-ddThh:mm:ss[Z|offset] * @param timeZone An IANA time zone id. If supplied, convert the date into the specified time zone, * otherwise convert to local browser time. * @returns A time string without the date based on the supplied time zone and user's * browser locale settings. */ export declare const getLocalizedTimeString: (date: any, timeZone?: string) => string; //# sourceMappingURL=dateUtils.d.ts.map