import { ButtonProps } from '@material-ui/core/Button'; import { CircularProgressProps } from '@material-ui/core/CircularProgress'; import React from 'react'; import { Omit } from './types'; export declare type DelayedCircularProgressProps = CircularProgressProps & { timeout?: number; open: boolean; }; /** * CircularProgress from material-ui but with a timeout to avoid it beeing display immediately */ export declare class DelayedCircularProgress extends React.PureComponent { cancel?: () => void; timeout: any; state: { spin: boolean; }; componentWillReceiveProps(nextProps: any): void; componentWillUnmount(): void; render(): JSX.Element; } export declare type ProgressButtonProps = Omit & { loading?: boolean; timeout?: number; progressProps?: Omit; onClick?: (e: React.MouseEvent) => any; /** * @default true */ disableOnProgress?: boolean; }; /** * Displays an material button that when clicked can display * a progress until an asyncronous action has compleated. */ export declare class ProgressButton extends React.PureComponent { cancel?: () => void; state: { isLoading: boolean; }; onClick: (e: any) => any; componentWillUnmount(): void; render(): JSX.Element; }