index.d.ts 806 B

12345678910111213141516
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. import { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff } from './cleanupSemantic';
  8. import { diffLinesRaw, diffLinesUnified, diffLinesUnified2 } from './diffLines';
  9. import { diffStringsRaw, diffStringsUnified } from './printDiffs';
  10. import type { DiffOptions } from './types';
  11. export type { DiffOptions, DiffOptionsColor } from './types';
  12. export { diffLinesRaw, diffLinesUnified, diffLinesUnified2 };
  13. export { diffStringsRaw, diffStringsUnified };
  14. export { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff };
  15. declare function diff(a: any, b: any, options?: DiffOptions): string | null;
  16. export default diff;