import { FC, PropsWithChildren } from 'react'; import { AiToolNotification, ConnectionStatus } from '../hooks/useAgentEvents'; /** * Context value for agent events */ interface AgentEventsContextValue { /** * Current agent id being monitored */ agentId: string | null; /** * Set the agent id to connect to */ setAgentId: (agentId: string | null) => void; /** * WebSocket connection status */ connectionStatus: ConnectionStatus; /** * Connection error message */ connectionError: string | null; /** * Recent notifications */ notifications: AiToolNotification[]; /** * Clear all notifications */ clearNotifications: () => void; /** * Dismiss a specific notification */ dismissNotification: (id: string) => void; /** * Reconnect to the agent event poller */ reconnect: () => void; /** * Whether notifications are enabled */ notificationsEnabled: boolean; /** * Enable/disable notifications */ setNotificationsEnabled: (enabled: boolean) => void; } /** * Hook to access agent events context */ export declare const useAgentEventsContext: () => AgentEventsContextValue; /** * Props for the AgentEventsProvider */ interface AgentEventsProviderProps { /** * Position for toast notifications */ toastPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; /** * Auto-dismiss delay in milliseconds */ autoDismissDelay?: number; /** * Maximum visible toasts */ maxVisibleToasts?: number; /** * Initial notifications enabled state */ initialNotificationsEnabled?: boolean; } /** * Provider component for agent events and notifications */ export declare const AgentEventsProvider: FC>; export default AgentEventsProvider;