jscpd
Version:
detector of copy/paste in files
11 lines (8 loc) • 557 B
text/typescript
import { IOptions, IStore, IMapFrame, Statistic, IClone, IStatistic } from '@jscpd/core';
declare const detectClones: (opts: IOptions, store?: IStore<IMapFrame> | undefined, statisticProvider?: Statistic | undefined) => Promise<IClone[]>;
declare const detectClonesAndStatistic: (opts: IOptions, store?: IStore<IMapFrame> | undefined) => Promise<{
clones: IClone[];
statistic: IStatistic;
}>;
declare function jscpd(argv: string[], exitCallback?: (code: number) => {}): Promise<IClone[]>;
export { detectClones, detectClonesAndStatistic, jscpd };