import type { BusEvent } from './event-types.js'; export declare function publish(stream: string, event: BusEvent): Promise; export declare function createConsumerGroup(stream: string, group: string): Promise; export declare function subscribe(stream: string, group: string, consumer: string, handler: (event: BusEvent) => Promise): Promise; export declare function subscribeOnce(stream: string, group: string, consumer: string, handler: (event: BusEvent) => Promise, timeoutMs?: number): Promise; export declare function getStreamInfo(stream: string): Promise<{ length: number; groups: number; }>; export declare function closeBus(): Promise; //# sourceMappingURL=stream-bus.d.ts.map