import * as React from "react"; import { PropsWithChildren } from "react"; export declare const TimeContext: React.Context; interface IProps extends PropsWithChildren { intervalInMilSec?: number; } /** * * @param props interval in mil sec, default 1000 * @constructor */ export declare function TimeProvider(props: IProps): JSX.Element; /** * current time tick, updates every sec * make sure TimeProvider component is set */ export declare function useTime(): number; /** * get nice timeleft string format from the fromTime to the current time. takes current set language into account * will auto update every sec * make sure TimeProvider component is set * returns 12:34:56 or 2 days or morgen. * @param fromTime */ export declare function useTimeLeftLabel(fromTime: DateString): string; export {};