export type NotificationType = 'success' | 'error' | 'info'; export interface NotificationState { type: NotificationType; message: string; } export interface UseNotificationApi { notification: NotificationState | null; notify: (type: NotificationType, message: string, durationMs?: number) => void; dismiss: () => void; } /** * Single-slot notification toast with timer coalescing. * * Back-to-back `notify()` calls cancel the previous auto-dismiss timer so a * slow earlier toast cannot wipe out a fresher one. The timer is also cleared * on unmount to avoid a setState-after-unmount warning when the user navigates * away mid-toast. A single `duration` of `Infinity` keeps the toast until the * caller dismisses it manually or a new `notify()` supersedes it. */ export declare function useNotification(): UseNotificationApi;