export interface UiEvent {
    type: string;
    workId: string;
    ts: number;
    payload: unknown;
}
export type UiEventListener = (event: UiEvent) => void;
export declare class UiEventBus {
    private subs;
    subscribe(workId: string, listener: UiEventListener): () => void;
    publish(workId: string, event: UiEvent): void;
}
export declare const uiEventBus: UiEventBus;
//# sourceMappingURL=ui-events.d.ts.map