import React from 'react'; import PropTypes from 'prop-types'; import { ComponentProps } from '../utils/types'; interface MessagePropsBase { /** * * Changes the style of the Message. * */ appearance?: 'default' | 'fill'; children?: React.ReactNode; /** * A React ref which is set to the DOM element when the component mounts and null when it unmounts. */ elementRef?: React.Ref; /** * Includes a remove button if set. Only set this prop when using the `fill` appearance. */ onRequestRemove?: React.MouseEventHandler; /** Sets the severity or type of this `Message`. */ type?: 'info' | 'warning' | 'error' | 'success'; } type MessageProps = ComponentProps; declare function Message({ appearance, children, elementRef, onRequestRemove, type, ...otherProps }: MessageProps): React.JSX.Element; declare namespace Message { var propTypes: { appearance: PropTypes.Requireable; children: PropTypes.Requireable; elementRef: PropTypes.Requireable; onRequestRemove: PropTypes.Requireable<(...args: any[]) => any>; type: PropTypes.Requireable; }; var Title: typeof import("./Title").default; } export default Message;