UNPKG

1.13 kBTypeScriptView Raw
1import * as DiffParser from './diff-parser';
2import { LineByLineRendererConfig } from './line-by-line-renderer';
3import { SideBySideRendererConfig } from './side-by-side-renderer';
4import { DiffFile, OutputFormatType } from './types';
5import { HoganJsUtilsConfig } from './hoganjs-utils';
6export interface Diff2HtmlConfig extends DiffParser.DiffParserConfig, LineByLineRendererConfig, SideBySideRendererConfig, HoganJsUtilsConfig {
7 outputFormat?: OutputFormatType;
8 drawFileList?: boolean;
9}
10export declare const defaultDiff2HtmlConfig: {
11 outputFormat: OutputFormatType;
12 drawFileList: boolean;
13 renderNothingWhenEmpty: boolean;
14 matchingMaxComparisons: number;
15 maxLineSizeInBlockForComparison: number;
16 matching: import("./types").LineMatchingType;
17 matchWordsThreshold: number;
18 maxLineLengthHighlight: number;
19 diffStyle: import("./types").DiffStyleType;
20};
21export declare function parse(diffInput: string, configuration?: Diff2HtmlConfig): DiffFile[];
22export declare function html(diffInput: string | DiffFile[], configuration?: Diff2HtmlConfig): string;
23//# sourceMappingURL=diff2html.d.ts.map
\No newline at end of file