import { CalendarNativeDateFormatter } from './calendarNativeDateFormatter.provider'; /** * This class is responsible for all formatting of dates. There are 2 implementations available, the `CalendarNativeDateFormatter` (default) which will use the Intl API to format dates, or there is the `CalendarMomentDateFormatter` which uses moment. * * If you wish, you may override any of the defaults via angulars DI. For example: * * ```typescript * import { CalendarDateFormatter, DateFormatterParams } from 'angular-calendar'; * * class CustomDateFormatter extends CalendarDateFormatter { * * public monthViewColumnHeader({date, locale}: DateFormatterParams): string { * return new Intl.DateTimeFormat(locale, {weekday: 'short'}).format(date); // use short week days * } * * } * * // in your component that uses the calendar * providers: [{ * provide: CalendarDateFormatter, * useClass: CustomDateFormatter * }] * ``` */ export declare class CalendarDateFormatter extends CalendarNativeDateFormatter { }