import { ElementType, ReactNode } from 'react'; import { Color } from '../types.js'; export interface UseToastOptions { /** Toast title — bold line above `text`. At least one of `title` / `text` is expected. */ title?: string; /** Toast body text — smaller line under `title`. At least one of `title` / `text` is expected. */ text?: string | ReactNode; /** Accent color token (`Color` enum). Default `'neutral'`. */ color?: Color; /** Render the auto close button on the right. Default `true`. */ closeButton?: boolean; /** Icon component rendered before the text content. Receives `iconProps`. */ icon?: ElementType; /** Props forwarded to the `icon` component. */ iconProps?: Record; /** Auto-close after this many ms. Pass `0` to disable auto-close. Default `5000`. */ timeout?: number; /** Extra classes applied to the toast root `Surface`. */ className?: string; /** Fires after the close transition completes — use for unmount cleanup. */ onClosed?: (closed: boolean) => void; } export declare const useToast: () => ({ title, text, color, closeButton, icon, iconProps, timeout, className, onClosed, }: UseToastOptions) => void; //# sourceMappingURL=use-toast.d.ts.map