UNPKG

518 BTypeScriptView Raw
1import * as React from 'react';
2import { RelativeTimeFormatSingularUnit } from '@formatjs/ecma402-abstract';
3import { FormatRelativeTimeOptions } from '@formatjs/intl';
4export interface Props extends FormatRelativeTimeOptions {
5 value?: number;
6 unit?: RelativeTimeFormatSingularUnit;
7 updateIntervalInSeconds?: number;
8 children?(value: string): React.ReactElement | null;
9}
10declare const FormattedRelativeTime: React.FC<Props>;
11export default FormattedRelativeTime;
12//# sourceMappingURL=relative.d.ts.map
\No newline at end of file