UNPKG

@pierre/diffs

Version:

1 lines 1.8 kB
{"version":3,"file":"computeEstimatedDiffHeights.d.ts","names":["FileDiffMetadata","HunkExpansionRegion","HunkSeparators","VirtualFileMetrics","ComputeEstimatedDiffHeightsOptions","Map","EstimatedDiffHeights","computeEstimatedDiffHeights","fileDiff","metrics","disableFileHeader","hunkSeparators","expandUnchanged","configuredExpandedHunks","collapsedContextThreshold"],"sources":["../../src/utils/computeEstimatedDiffHeights.d.ts"],"sourcesContent":["import type { FileDiffMetadata, HunkExpansionRegion, HunkSeparators, VirtualFileMetrics } from '../types';\nexport interface ComputeEstimatedDiffHeightsOptions {\n fileDiff: FileDiffMetadata;\n metrics: VirtualFileMetrics;\n disableFileHeader: boolean;\n hunkSeparators: HunkSeparators;\n expandUnchanged: boolean;\n expandedHunks: Map<number, HunkExpansionRegion> | true | undefined;\n collapsedContextThreshold: number;\n}\nexport interface EstimatedDiffHeights {\n splitHeight: number;\n unifiedHeight: number;\n}\nexport declare function computeEstimatedDiffHeights({ fileDiff, metrics, disableFileHeader, hunkSeparators, expandUnchanged, expandedHunks: configuredExpandedHunks, collapsedContextThreshold }: ComputeEstimatedDiffHeightsOptions): EstimatedDiffHeights;\n//# sourceMappingURL=computeEstimatedDiffHeights.d.ts.map"],"mappings":";;;UACiBI,kCAAAA;YACHJ;EADGI,OAAAA,EAEJD,kBAFIC;EACHJ,iBAAAA,EAAAA,OAAAA;EACDG,cAAAA,EAEOD,cAFPC;EAEOD,eAAAA,EAAAA,OAAAA;EAEWD,aAAAA,EAAZI,GAAYJ,CAAAA,MAAAA,EAAAA,mBAAAA,CAAAA,GAAAA,IAAAA,GAAAA,SAAAA;EAAZI,yBAAAA,EAAAA,MAAAA;;AAGFC,UAAAA,oBAAAA,CAAoB;EAIbC,WAAAA,EAAAA,MAAAA;EAA8BC,aAAAA,EAAAA,MAAAA;;AAAmBE,iBAAjDH,2BAAAA,CAAiDG;EAAAA,QAAAA;EAAAA,OAAAA;EAAAA,iBAAAA;EAAAA,cAAAA;EAAAA,eAAAA;EAAAA,aAAAA,EAAmEG,uBAAnEH;EAAAA;AAAAA,CAAAA,EAAyHN,kCAAzHM,CAAAA,EAA8JJ,oBAA9JI"}