import { Workflow } from '@flowlab/core';
import { EventContext } from '../internal/context';
import { EventBus } from '../bus/EventBus';
/**
 * 将一个工作流绑定到事件上
 * @param eventName 事件名称
 * @param workflow 要运行的工作流实例
 */
export declare function registerWorkflow(eventName: string, workflow: Workflow): void;
export declare function bindWorkflowToEvent(event: string, handler: (payload: any, ctx: EventContext) => Promise<void>, options: {
    bus: EventBus;
}): void;
