1 | import { LocaleFieldsData, RelativeTimeLocaleData } from '@formatjs/ecma402-abstract';
|
2 | export default class RelativeTimeFormat {
|
3 | constructor(locales?: string | string[], options?: Intl.RelativeTimeFormatOptions);
|
4 | format(value: number, unit: Intl.RelativeTimeFormatUnit): string;
|
5 | formatToParts(value: number, unit: Intl.RelativeTimeFormatUnit): Intl.RelativeTimeFormatPart[];
|
6 | resolvedOptions(): Intl.ResolvedRelativeTimeFormatOptions;
|
7 | static supportedLocalesOf(locales: string | string[], options?: Pick<Intl.RelativeTimeFormatOptions, 'localeMatcher'>): string[];
|
8 | static __addLocaleData(...data: RelativeTimeLocaleData[]): void;
|
9 | static localeData: Record<string, LocaleFieldsData>;
|
10 | private static availableLocales;
|
11 | private static __defaultLocale;
|
12 | private static getDefaultLocale;
|
13 | private static relevantExtensionKeys;
|
14 | static polyfilled: boolean;
|
15 | }
|