import React from 'react'; import type { Toast, ToastLayout } from "./types"; export declare const defaultToastLayout: Required; export type UpdateToastsFunction = (fn: (toasts: Array) => Array) => void; export type UpdateToastsLayoutFunction = (fn: (layout: Required) => Required) => void; export type UpdateToastsIDFunction = (fn: () => string | null) => void; export interface MestToastContextParams { toasts: Array; updateToasts: UpdateToastsFunction; toastLayout: Required; updateToastLayout: UpdateToastsLayoutFunction; lastUpdateToastId: string | null; updateLastToastId: UpdateToastsIDFunction; } export declare const MestToastContext: React.Context; export declare const useMestToastContext: () => MestToastContextParams;