UNPKG

@forgeflowai/chat

Version:

This is an embeddable Chat widget for n8n. It allows the execution of AI-Powered Workflows through a Chat window.

9 lines (8 loc) 332 B
export type CallbackFn = Function; export type UnregisterFn = () => void; export interface EventBus { on: (eventName: string, fn: CallbackFn) => UnregisterFn; off: (eventName: string, fn: CallbackFn) => void; emit: <T = Event>(eventName: string, event?: T) => void; } export declare function createEventBus(): EventBus;