import { IEventBus } from '../types';
/**
 * 获取当前事件总线实例
 */
export declare function getCurrentEventBus(): IEventBus;
/**
 * 替换当前使用的事件总线（可用于 Redis/Kafka）
 * @param bus 自定义实现的事件总线
 */
export declare function useEventBus(bus: IEventBus): void;
export interface EventContext {
    state?: string;
    data?: any;
    emit: (event: string, payload: any) => Promise<void>;
    abort?: () => void;
    [key: string]: any;
}
