UNPKG

1.05 kBTypeScriptView Raw
1import * as i0 from "@angular/core";
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 static ɵfac: i0.ɵɵFactoryDeclaration<NgbTimepickerI18n, never>;
17 static ɵprov: i0.ɵɵInjectableDeclaration<NgbTimepickerI18n>;
18}
19export declare class NgbTimepickerI18nDefault extends NgbTimepickerI18n {
20 private _locale;
21 private _periods;
22 getMorningPeriod(): string;
23 getAfternoonPeriod(): string;
24 static ɵfac: i0.ɵɵFactoryDeclaration<NgbTimepickerI18nDefault, never>;
25 static ɵprov: i0.ɵɵInjectableDeclaration<NgbTimepickerI18nDefault>;
26}