import './messageClose'; import './messageIcon'; import Omi, { Component } from 'omi'; import { StyledProps, TNode } from '../common'; import { TdMessageProps } from './type'; export interface MessageComponentProps extends TdMessageProps, StyledProps { children?: TNode; } export default class MessageComponent extends Component { static defaultProps: { theme: string; duration: number; icon: boolean; }; static propTypes: { closeBtn: (ObjectConstructor | NumberConstructor | FunctionConstructor | StringConstructor)[]; content: (ObjectConstructor | NumberConstructor | FunctionConstructor | StringConstructor)[]; duration: NumberConstructor; icon: (ObjectConstructor | NumberConstructor | FunctionConstructor | StringConstructor)[]; theme: StringConstructor; onClose: FunctionConstructor; onCloseBtnClick: FunctionConstructor; onDurationEnd: FunctionConstructor; }; isHovering: Omi.SignalValue; timer: Partial>; resetTimer: () => void; clearTimer: () => void; install(): void; uninstall(): void; render(props: Omi.OmiProps | MessageComponentProps): JSX.Element; }