/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import React from 'react';
import { BoxProps } from '@mui/material';
/**
 * Convert a duration in milliseconds to a human readable format
 * @example toTimeDuration(0, 1000) // 1s
 * @example toTimeDuration(0, 86401000) // 1d, 1s
 */
export declare const toTimeDuration: (from: number, to: number) => string;
export type TimeDurationProps = ({
    from: number;
    to: number;
} | {
    duration: number;
}) & BoxProps;
/**
 * Convert a duration in milliseconds to a human readable format
 */
export declare const TimeDuration: (props: TimeDurationProps) => React.JSX.Element;
