UNPKG

602 BTypeScriptView Raw
1import { LexRules as LexRulesType, ParseRules as ParseRulesType } from './Rules';
2import CharacterStream from './CharacterStream';
3import { State } from './types';
4export declare type ParserOptions = {
5 eatWhitespace: (stream: CharacterStream) => boolean;
6 lexRules: Partial<typeof LexRulesType>;
7 parseRules: typeof ParseRulesType;
8 editorConfig: {
9 [name: string]: any;
10 };
11};
12export default function onlineParser(options?: ParserOptions): {
13 startState: () => State;
14 token: (stream: CharacterStream, state: State) => string;
15};
16//# sourceMappingURL=onlineParser.d.ts.map
\No newline at end of file