import { YearDate } from './yearDate.js'; export declare namespace Format { const DefaultLocale = "en-US"; enum Presets { FullDay_ShortDate = "ddd DD.MM.YYYY", ShortDate_FullTime = "DD.MM.YYYY HH:mm:ss" } namespace Presets { function use(p: Presets, d: Date, local?: boolean): string | undefined; } function timespan(ms: number): string; /** `YYYY-MM-DD` */ function toDatePicker(date: Date | number, local?: boolean): string | null; function toLocalDate(date: Date | number): string | null; function yearDate(yd: YearDate, short?: boolean): string; function toDistance(to: Date, from?: Date): string; namespace Ordinal { /** 'en' locale is used. If you need another locale – grab this as example */ function createFormatter(): (n: number) => string; function format(num: number): string; } }