import type { EventBus } from '@wrongstack/core/kernel'; import type { Action, State } from '../app-reducer.js'; type ClearHistoryDispatch = React.Dispatch<{ type: 'clearHistory'; model?: string | undefined; provider?: string | undefined; } | { type: 'resetContextChip'; } | { type: 'streamReset'; } | { type: 'toolStreamClear'; }>; export interface UseTuiEventBridgeOptions { events: EventBus; dispatch: React.Dispatch; stateRef: { current: State; }; setActiveMaxContext: (value: number | undefined) => void; getSessionId?: (() => string | undefined) | undefined; subscribeGoal?: ((handler: (event: string, payload: unknown) => void) => () => void) | undefined; onClearHistory?: ((dispatch: ClearHistoryDispatch) => void) | undefined; sessionGenerationRef?: { current: number; } | undefined; } /** * EventBus and host-event subscriptions that mutate TUI state. * * Keeping this bridge outside App preserves the reducer as the single state * writer while taking long-lived subscription wiring out of the render surface. */ export declare function useTuiEventBridge({ events, dispatch, stateRef, setActiveMaxContext, getSessionId, subscribeGoal, onClearHistory, sessionGenerationRef, }: UseTuiEventBridgeOptions): void; export {}; //# sourceMappingURL=use-tui-event-bridge.d.ts.map