import { ReactElement, ReactNode } from 'react'; export interface ControlAlertProps { theme: 'error' | 'locked' | 'success' | 'warning'; children: ReactNode; autoFocus?: boolean; onButtonClick?: () => void; } declare function ControlAlert({ theme, children, autoFocus, onButtonClick }: ControlAlertProps): ReactElement; declare namespace ControlAlert { var propTypes: { /** * The alert `theme` options are "error", "locked", "success", and * "warning". */ theme: any; /** The content of the alert. */ children: any; /** Whether to use ARIA alert role for screen readers or not. */ autoFocus: any; /** * Called on click of dismiss button. Must have this callback to display * the button. */ onButtonClick: any; }; } export default ControlAlert;