import type { Format } from '../types.js'; export declare function today(): Date; export declare function toYear(date?: Date): string; /** * Formats the date, just for you! * * @param {Date} date - Date to format * @param {'numeric' | '2-digit'} format - Format for the date. */ export declare function formatDate(date?: Date, format?: Format): string; /** * Returns the "range string", unless the dates are the same. * * @param {string} date1 - First date (formatted to a string) * @param {string} date2 - Second date (formatted to a string). */ export declare function getRange(date1: string, date2: string): string; type GetDisplayDateProps = { showRange?: boolean; date?: Date; format?: Format; }; /** * Returns the displayed date for the component. * * @param {boolean} options.showRange - If a date range should be displayed. * @param {Date} options.date - Copyright year to be used. If showRange is true, this is the start year of the range. * @param {'numeric' | '2-digit'} options.format - Date format to be used. */ export declare function getDisplayDate({ showRange, date, format, }: GetDisplayDateProps): string; export {};