import type { BaseProps, BaseState } from '../../../models'; export interface ToastProps extends BaseProps { disabled?: boolean; } export interface ToastState extends BaseState { classes: { base: string }; toasts: ToastPayload[]; toastSubscription: { unsubscribe(): void; }; } export type ToastPayload = { id?: string; message: string; }; // TODO Move to generic export type ToastChannelEvent = { channel: string; payload: T | undefined; }; export type ToastCallback = (event: ToastChannelEvent) => void;