docutils-ts
Version:
Port of the Python Docutils library to TypeScript
12 lines (11 loc) • 819 B
TypeScript
import StateMachineWS from "../../stateMachineWS.js";
import { ContextKind, ElementInterface, Statefactory, StatemachineInterface } from "../../types.js";
import { Nestedstatemachine, RstMemo } from "./types.js";
import StringList from "../../stringList.js";
declare class NestedStateMachine extends StateMachineWS implements Nestedstatemachine {
memo?: RstMemo;
private rstLanguage;
run(inputLines: StringList | string | string[], inputOffset: number, runContext?: ContextKind, inputSource?: {}, initialState?: string, node?: ElementInterface, matchTitles?: boolean, memo?: RstMemo, ...rest: any[]): (string | {})[];
static createStateMachine(stateMachine: StatemachineInterface, initialState?: string, stateFactory?: Statefactory | undefined): NestedStateMachine;
}
export default NestedStateMachine;