import StateMachine from "./state-machine.js"; import SymbolTable from "./symbol-table.js"; export type ExternalSymbols = Record; /** * Parses a DFA source grammar into a symbol table. * @param source The DFA source grammar string * @param externalSymbols Optional external symbol mappings */ export declare function parse(source: string, externalSymbols?: ExternalSymbols): SymbolTable; /** * Builds a StateMachine from a parsed symbol table. * @param symbolTable The parsed symbol table from parse() */ export declare function build(symbolTable: SymbolTable): StateMachine; /** * Compiles a DFA source grammar directly into a StateMachine. * @param source The DFA source grammar string * @param externalSymbols Optional external symbol mappings */ export default function compile(source: string, externalSymbols?: ExternalSymbols): StateMachine;