UNPKG

cumulocity-cypress

Version:
44 lines (43 loc) 1.6 kB
import localeDe from "@angular/common/locales/de"; import localeEn from "@angular/common/locales/en-GB"; export declare enum FormatWidth { Short = 0, Medium = 1, Long = 2, Full = 3 } export { localeDe, localeEn }; export declare enum NgLocaleDataIndex { LocaleId = 0, DayPeriodsFormat = 1, DayPeriodsStandalone = 2, DaysFormat = 3, DaysStandalone = 4, MonthsFormat = 5, MonthsStandalone = 6, Eras = 7, FirstDayOfWeek = 8, WeekendRange = 9, DateFormat = 10, TimeFormat = 11, DateTimeFormat = 12, NumberSymbols = 13, NumberFormats = 14, CurrencyCode = 15, CurrencySymbol = 16, CurrencyName = 17, Currencies = 18, Directionality = 19, PluralCase = 20, ExtraData = 21, DfnsLocale = 22 } export declare function getNgLocaleId(locale: string): string; export declare function registerLocale(data: unknown[], c8yLocaleId: string, extraData?: unknown, localeId?: string): Promise<void>; export declare function registerDefaultLocales(): Promise<void>; export declare function getNgLocale(localeId: string): any; export declare function localizedTimeFormat(localeId?: string, formatWidth?: FormatWidth | number): string; export declare function localizedDateFormat(localeId?: string, formatWidth?: FormatWidth | number): string; export declare function localizedDateTimeFormat(localeId?: string, formatWidth?: FormatWidth | number): string; export declare function parseDate(date: string | number | Date, format: string): Date | undefined; export declare function isValidDate(date?: Date): boolean;