import { CalendarAngularDateFormatter } from './calendar-angular-date-formatter.provider'; /** * This class is responsible for all formatting of dates. There are 3 implementations available, the `CalendarAngularDateFormatter` (default) which uses the angular date pipe to format dates, the `CalendarNativeDateFormatter` 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'; * import { formatDate } from '@angular/common'; * import { Injectable } from '@angular/core'; * * @Injectable() * class CustomDateFormatter extends CalendarDateFormatter { * * public monthViewColumnHeader({date, locale}: DateFormatterParams): string { * return formatDate(date, 'EEE', locale); // use short week days * } * * } * * // in your component that uses the calendar * providers: [{ * provide: CalendarDateFormatter, * useClass: CustomDateFormatter * }] * ``` */ export declare class CalendarDateFormatter extends CalendarAngularDateFormatter { }