UNPKG

849 BTypeScriptView Raw
1export declare function NGB_TIMEPICKER_I18N_FACTORY(locale: any): NgbTimepickerI18nDefault;
2/**
3 * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.
4 * The default implementation of this service honors the Angular locale, and uses the registered locale data,
5 * as explained in the Angular i18n guide.
6 */
7export declare abstract class NgbTimepickerI18n {
8 /**
9 * Returns the name for the period before midday.
10 */
11 abstract getMorningPeriod(): string;
12 /**
13 * Returns the name for the period after midday.
14 */
15 abstract getAfternoonPeriod(): string;
16}
17export declare class NgbTimepickerI18nDefault extends NgbTimepickerI18n {
18 private _periods;
19 constructor(locale: string);
20 getMorningPeriod(): string;
21 getAfternoonPeriod(): string;
22}