import { type MachineDefinition } from "../MachineDefinition.js"; import type { EventObject, MachineContext } from "../types/index.js"; export interface ToMermaidOptions { /** Diagram direction. @default "TB" */ direction?: "TB" | "LR"; /** Append `/ action1, action2` to transition labels and render entry/exit as state notes. @default true */ includeActions?: boolean; /** Append `[guard]` to transition labels. @default true */ includeGuards?: boolean; } /** * Renders `definition` as a `stateDiagram-v2` in the converter's dialect * (see the module comment): `%% @machine` / `%% @context initial` directives, * nested `state id { ... }` blocks, `--` regions, `[*]` for initial and * `$final` states, labels `EVENT [guard] / actions`, `after `, `done` * and none for `always`. */ export declare function toMermaid(definition: MachineDefinition, options?: ToMermaidOptions): string;