import { type ConvertOptions, type ConvertResult, type ParseResult } from "../types.js"; import { type StatechartBlock } from "./blocks.js"; export interface MarkdownSelectOptions { /** `@machine` id to convert; the first block of the document when absent. */ machine?: string; } export interface MarkdownConvertOptions extends ConvertOptions, MarkdownSelectOptions { } /** `parse` of one block; errors and the positions of the result are those of the document. */ export declare function parseStatechartBlock(block: StatechartBlock): ParseResult; /** `convert` of one block; errors and `parsed` positions are those of the document. */ export declare function convertStatechartBlock(block: StatechartBlock, options: ConvertOptions): ConvertResult; /** Parses one machine of a markdown document (the first one when `machine` is absent). */ export declare function parseMarkdown(markdown: string, options?: MarkdownSelectOptions): ParseResult; /** Converts one machine of a markdown document (the first one when `machine` is absent). */ export declare function convertMarkdown(markdown: string, options: MarkdownConvertOptions): ConvertResult;