@@ -39,16 +39,16 @@ declare class File$1 {
3939 doRaw ( ) : void ;
4040}
4141declare const lowlight : {
42- highlight : ( language : string , value : string , options ?: Readonly < import ( "lowlight" ) . Options > ) => import ( "hast" ) . Root ;
43- highlightAuto : ( value : string , options ?: Readonly < import ( "lowlight" ) . AutoOptions > ) => import ( "hast" ) . Root ;
44- listLanguages : ( ) => string [ ] ;
42+ highlight : ( language : string , value : string , options ?: Readonly < import ( "lowlight" ) . Options > | null | undefined ) => import ( "hast" ) . Root ;
43+ highlightAuto : ( value : string , options ?: Readonly < import ( "lowlight" ) . AutoOptions > | null | undefined ) => import ( "hast" ) . Root ;
44+ listLanguages : ( ) => Array < string > ;
4545 register : {
4646 ( grammars : Readonly < Record < string , import ( "highlight.js" ) . LanguageFn > > ) : undefined ;
4747 ( name : string , grammar : import ( "highlight.js" ) . LanguageFn ) : undefined ;
4848 } ;
4949 registerAlias : {
50- ( aliases : Readonly < Record < string , string | readonly string [ ] > > ) : undefined ;
51- ( language : string , alias : string | readonly string [ ] ) : undefined ;
50+ ( aliases : Readonly < Record < string , ReadonlyArray < string > | string > > ) : undefined ;
51+ ( language : string , alias : ReadonlyArray < string > | string ) : undefined ;
5252 } ;
5353 registered : ( aliasOrName : string ) => boolean ;
5454} ;
@@ -456,6 +456,10 @@ export declare class DiffParser {
456456export declare const DefaultDiffExpansionStep = 40 ;
457457export declare const _cacheMap : Cache$1 < string , File$1 > ;
458458export declare const changeDefaultComposeLength : ( compose : number ) => void ;
459+ /**
460+ * Change the maximum length of a line to ignore line diff.
461+ */
462+ export declare const changeMaxLengthToIgnoreLineDiff : ( length : number ) => void ;
459463export declare const checkCurrentLineIsHidden : ( diffFile : DiffFile , lineNumber : number , side : SplitSide ) => {
460464 split : boolean ;
461465 unified : boolean ;
@@ -466,6 +470,7 @@ export declare const disableCache: () => void;
466470export declare const getCurrentComposeLength : ( ) => number ;
467471export declare const getEnableFastDiffTemplate : ( ) => boolean ;
468472export declare const getLang : ( fileName : string ) => string ;
473+ export declare const getMaxLengthToIgnoreLineDiff : ( ) => number ;
469474export declare const getPlainDiffTemplate : ( { diffLine, rawLine, operator, } : {
470475 diffLine : DiffLine ;
471476 rawLine : string ;
@@ -537,6 +542,7 @@ export declare const processTransformForFile: (content: string) => string;
537542export declare const processTransformTemplateContent : ( content : string ) => string ;
538543export declare const resetDefaultComposeLength : ( ) => void ;
539544export declare const resetEnableFastDiffTemplate : ( ) => void ;
545+ export declare const resetMaxLengthToIgnoreLineDiff : ( ) => void ;
540546/**
541547 * Resets all transformation functions to their default state and disables transformation.
542548 *
0 commit comments