import Diff from './base'; import { CallbackOption, ChangeObject, DiffCallback, DiffWordsOptions } from '../types'; declare class WordDiff extends Diff { protected equals(left: string, right: string, options: DiffWordsOptions): boolean; protected tokenize(value: string, options?: DiffWordsOptions): string[]; protected join(tokens: any): any; protected postProcess(changes: any, options: any): any; } export declare const wordDiff: WordDiff; export declare function diffWords(oldStr: string, newStr: string, options: (DiffWordsOptions & CallbackOption) | DiffCallback): undefined; export declare function diffWords(oldStr: string, newStr: string, options: DiffWordsOptions): ChangeObject[]; declare class WordsWithSpaceDiff extends Diff { protected tokenize(value: string): RegExpMatchArray | []; } export declare const wordsWithSpaceDiff: WordsWithSpaceDiff; export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: (DiffWordsOptions & CallbackOption) | DiffCallback): undefined; export declare function diffWordsWithSpace(oldStr: string, newStr: string, options: DiffWordsOptions): ChangeObject[]; export {};