import { MutableRefObject } from 'react'; export type AlertOptions = Record; export type Alert = { id?: number; remove?: () => void; message: string; options: AlertOptions; }; export type AlertRef = MutableRefObject; export type AlertsMap = Map; export type AlertsManager = { add: (alert: Alert, alertRef: AlertRef) => Alert; plugin: boolean; parentAlertsAdd?: any; showAlertsInPlugin?: boolean; };