/*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ import { ATN } from '../atn/ATN'; import { DFA } from './DFA'; import { DFAState } from './DFAState'; import { Recognizer } from '../Recognizer'; import { Vocabulary } from '../Vocabulary'; /** A DFA walker that knows how to dump them to serialized strings. */ export declare class DFASerializer { private dfa; private vocabulary; ruleNames?: string[]; atn?: ATN; constructor(dfa: DFA, vocabulary: Vocabulary); constructor(dfa: DFA, parser: Recognizer | undefined); constructor(dfa: DFA, vocabulary: Vocabulary, ruleNames: string[] | undefined, atn: ATN | undefined); toString(): string; protected getContextLabel(i: number): string; protected getEdgeLabel(i: number): string; getStateString(s: DFAState): string; }