import { type PropsWithChildren, type ReactNode } from "react"; import type { IconName } from "../Icon"; export interface ToastConfig { /** * By default, a new key is created every-time showToast is called, meaning we consider it as a brand new toast. * Specify a stable key if you're just updating the content of the same toast and don't want animations to play. */ key?: string | number; variant?: "inline" | "card"; loadingIndicator?: boolean; anchor?: ReactNode; title: ReactNode; subtitle?: ReactNode; seconds?: number; action?: { title: string; icon?: IconName; onClick: () => void; }; cancel?: { onClick?: () => void; }; icon?: IconName; } export declare function ToastProvider(props: PropsWithChildren): JSX.Element; export declare function useToast(): ToastContextValue; interface ToastContextValue { showToast: (config: ToastConfig) => () => void; } export {};