import type { GrammarInput, SpecOptions } from './model.ts'; import { renderRailroadSvg } from './railroad.ts'; import type { RailroadHtmlOptions } from './railroad.ts'; export { buildSpecModel } from './model.ts'; export type { GrammarInput, SpecModel, SpecOptions, SpecNode, Production } from './model.ts'; export { renderEBNF, renderExpr } from './ebnf.ts'; export { renderRailroadHtml, renderRailroadSvg } from './railroad.ts'; export type { RailroadHtmlOptions, RailroadSvg } from './railroad.ts'; export { RAILROAD_CSS } from './railroad-lib.ts'; /** Generate W3C-style EBNF text (one production per named rule). */ export declare function toEBNF(grammar: GrammarInput, options?: SpecOptions): string; /** * Generate a self-contained HTML page of SVG railroad (syntax) diagrams — one * per production — with an EBNF caption under each. No external dependencies. */ export declare function toRailroadHtml(grammar: GrammarInput, options?: SpecOptions & RailroadHtmlOptions): string; /** * Render each production to a static, self-contained SVG string — one per named * rule — ready to inline in a docs page, README, or any HTML (no client script). * Style with the exported `RAILROAD_CSS`, scoped to whatever wraps the SVGs. */ export declare function toRailroadSvg(grammar: GrammarInput, options?: SpecOptions): ReturnType; //# sourceMappingURL=index.d.ts.map