import { HoistModel, ToastSpec } from '@xh/hoist/core'; import { ReactNode, ReactElement } from 'react'; /** * Model for a single instance of a pop-up Toast alert. * * An instance of this class is returned by the primary `XH.toast()` API and its variants. * It is primarily useful for its `dismiss()` method, which can be called to programmatically * dismiss a Toast at any time. * * All other properties on this object should be considered immutable - attempting to change them * will have no effect. */ export declare class ToastModel extends HoistModel { xhImpl: boolean; message: ReactNode; icon: ReactElement; timeout: number; intent: string; actionButtonProps: any; position: string; containerRef: HTMLElement; isOpen: boolean; constructor({ message, icon, timeout, intent, actionButtonProps, position, containerRef }: ToastSpec); /** Hide this Toast immediately, if displayed. */ dismiss(): void; destroy(): void; }