import type { DeclarativeFlow } from "./types.js"; /** * Generate BPMN diagram interchange (DI) for a BPMN XML string using bpmn-io's * `bpmn-auto-layout`, returning the same model with an auto-laid-out diagram * (`bpmndi:BPMNDiagram`). Works on DI-less *or* already-laid-out input, and * preserves `zeebe:` extension elements (task definitions, message * subscriptions) through the round-trip. * * Requires the optional peer dependency `bpmn-auto-layout` to be installed; a * clear error is thrown if it is missing. */ export declare function layoutBpmn(bpmnXml: string): Promise; /** * Derive an executable BPMN model from a declarative flow AND auto-generate its * diagram (DI), so the model opens rendered in a modeller/viewer. Convenience * over `layoutBpmn(declarativeToBpmn(flow))`; async because layout is async. The * semantic model stays authoritative — see `declarativeToBpmn` for the DI-less * model the engine actually runs. * * Requires the optional peer dependency `bpmn-auto-layout` to be installed. */ export declare function declarativeToLayoutedBpmn(flow: DeclarativeFlow): Promise;