import type { LTEvent, LTEventAdapter, LTEventType } from '../../types'; type EventCallback = (event: LTEvent) => void; /** * In-process event adapter that delivers events via registered callbacks. * * Plugs into the existing `eventRegistry` alongside Socket.IO / NATS. * SDK callers subscribe with `.on()` and receive events as direct * function calls — no network transport, no serialization overhead. * * Supports NATS-style pattern matching: * - Exact: `on('task.created', cb)` * - Single-token wildcard: `on('task.*', cb)` — matches task.created, task.failed, etc. * - Multi-token wildcard: `on('app.epic.>', cb)` — matches app.epic.apis.createorder.error * - Global wildcard: `on('*', cb)` — matches every event */ export declare class CallbackEventAdapter implements LTEventAdapter { private listeners; /** * Subscribe to events by type, pattern, or wildcard. * Returns an unsubscribe function. */ on(pattern: LTEventType | '*' | (string & {}), callback: EventCallback): () => void; connect(): Promise; publish(event: LTEvent): Promise; disconnect(): Promise; } export {};