UNPKG

devops-diff

Version:

devops-diff

45 lines 1.7 kB
import * as HighlightJS from 'highlight.js/lib/core'; import { Diff2HtmlConfig } from '../../diff2html'; import { DiffFile } from '../../types'; export interface Diff2HtmlUIConfig extends Diff2HtmlConfig { synchronisedScroll?: boolean; highlight?: boolean; fileListToggle?: boolean; fileListStartVisible?: boolean; smartSelection?: boolean; } export declare const defaultDiff2HtmlUIConfig: { synchronisedScroll: boolean; highlight: boolean; fileListToggle: boolean; fileListStartVisible: boolean; smartSelection: boolean; outputFormat: import("../../types").OutputFormatType; drawFileList: boolean; renderNothingWhenEmpty: boolean; matchingMaxComparisons: number; maxLineSizeInBlockForComparison: number; matching: import("../../types").LineMatchingType; matchWordsThreshold: number; maxLineLengthHighlight: number; diffStyle: import("../../types").DiffStyleType; }; export declare class Diff2HtmlUI { readonly config: typeof defaultDiff2HtmlUIConfig; readonly diffHtml: string; readonly targetElement: HTMLElement; readonly hljs: typeof HighlightJS | null; currentSelectionColumnId: number; constructor(target: HTMLElement, diffInput?: string | DiffFile[], config?: Diff2HtmlUIConfig, hljs?: typeof HighlightJS); mergeLine(): void; showWrapper(): void; draw(): void; synchronisedScroll(): void; fileListToggle(startVisible: boolean): void; highlightCode(): void; smartSelection(): void; private instanceOfHighlightResult; private getHashTag; private isElement; } //# sourceMappingURL=diff2html-ui-base.d.ts.map