export { A as Artifact, f as ArtifactCategory, C as ChatSession, M as Message, a as WidgetAPI, W as WidgetClient, b as WidgetConfig, e as WidgetError, d as WidgetEvents, c as WidgetState } from './client-w6tyqekJ.js';

type EventHandler<T = unknown> = (payload: T) => void;
declare class TypedEventEmitter<TEvents extends Record<string, unknown>> {
    private listeners;
    on<K extends keyof TEvents>(event: K, handler: EventHandler<TEvents[K]>): () => void;
    off<K extends keyof TEvents>(event: K, handler: EventHandler<TEvents[K]>): void;
    emit<K extends keyof TEvents>(event: K, payload: TEvents[K]): void;
    clear(): void;
    removeAllListeners(event?: keyof TEvents): void;
}

export { TypedEventEmitter };
