UNPKG

diffblazer

Version:

A super fast diffing utility for HTML and Plaintext

18 lines (17 loc) 600 B
import { Match } from './match'; import { MatchOptions } from './match-options'; import { Token } from './tokenizer'; export declare class MatchFinder { private oldTokens; private newTokens; private startInOld; private endInOld; private startInNew; private endInNew; private options; private tokenIndices; constructor(oldTokens: Token[], newTokens: Token[], startInOld: number, endInOld: number, startInNew: number, endInNew: number, options: MatchOptions); indexNewTokens(): void; normalizeForIndex(token: Token): string; findMatch(): Match | null; }