/** * Verb for SubstitutionTracker.add() */ export declare enum SubstitutionUse { /** outputs this marker into context (e.g. transform to= or key to=) */ emit = 0, /** consumes this marker out of the context (e.g. transform from=) */ consume = 1, /** matches the marker, but doesn't consume (e.g. display to=) */ match = 2, /** variable definition: might consume, emit, or match. */ variable = 3 } type SubstitutionSet = Set; /** Tracks usage of markers */ export declare class SubstitutionTracker { /** markers that were emitted */ emitted: SubstitutionSet; /** markers that were consumed and removed from the context */ consumed: SubstitutionSet; /** markers that were matched, but not necessarily consumed */ matched: SubstitutionSet; /** all markers */ all: SubstitutionSet; constructor(); /** * * @param verb what kind of use we are adding * @param markers list of substitutions to add */ add(verb: SubstitutionUse, markers: string[]): void; } /** rollup of several substitution types */ export declare class Substitutions { addSetAndStringSubtitution(verb: SubstitutionUse, str?: string): void; /** add a string that can have string var substitutions or markers */ addStringAndMarkerSubstitution(verb: SubstitutionUse, str?: string): void; addStringSubstitution(verb: SubstitutionUse, str?: string): void; /** add a string that's just markers */ addMarkers(verb: SubstitutionUse, str?: string): void; markers: SubstitutionTracker; badMarkers: Set; set: SubstitutionTracker; string: SubstitutionTracker; uset: SubstitutionTracker; constructor(); } export {}; //# sourceMappingURL=substitution-tracker.d.ts.map