import { ReactElement, ReactNode } from 'react'; export interface MinimumDurationLoaderProps { children: ReactNode; isLoaded: boolean; loader?: ReactNode; minDuration?: number; } /** * Display a loading indicator in place of its children until the `isLoaded` * prop is true. The indicator will be displayed for a minimum * amount of time as specified by the `minDuration`. */ declare function MinimumDurationLoader({ children, isLoaded, loader, minDuration }: MinimumDurationLoaderProps): ReactElement; declare namespace MinimumDurationLoader { var propTypes: { /** * The content of the modal. */ children: any; /** * When `false` the loader will continue to display until this is passed as `true. */ isLoaded: any; /** * An optional for passing a custom loader. */ loader: any; /** * The minimum duration the loader should appear for (defaults to one second). */ minDuration: any; }; } export default MinimumDurationLoader;