petals-ui
Version:
Front-end UI components foundation
16 lines (15 loc) • 798 B
TypeScript
import { MessageStatus as MessageShortcutType } from '../../basic';
declare type MessageEventHandler = (...args: any[]) => void;
declare type MessageShortcutOptions = {
type?: MessageShortcutType;
content?: string;
duration?: number;
onClose?: MessageEventHandler;
};
declare type MessageShortcutCallback = (options: MessageShortcutOptions) => void;
declare type MessageShortcutMethod = {
(content: string, options?: MessageShortcutOptions): any;
(content: string, onClose: MessageEventHandler, options?: MessageShortcutOptions): any;
(content: string, duration: number, onClose: MessageEventHandler, options?: MessageShortcutOptions): any;
};
export { MessageShortcutType, MessageEventHandler, MessageShortcutOptions, MessageShortcutCallback, MessageShortcutMethod, };