index.d.ts 765 B

123456789101112131415161718
  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. */
  8. declare type IsCommon = (aIndex: number, // caller can assume: 0 <= aIndex && aIndex < aLength
  9. bIndex: number) => boolean;
  10. declare type FoundSubsequence = (nCommon: number, // caller can assume: 0 < nCommon
  11. aCommon: number, // caller can assume: 0 <= aCommon && aCommon < aLength
  12. bCommon: number) => void;
  13. export declare type Callbacks = {
  14. foundSubsequence: FoundSubsequence;
  15. isCommon: IsCommon;
  16. };
  17. export default function diffSequence(aLength: number, bLength: number, isCommon: IsCommon, foundSubsequence: FoundSubsequence): void;
  18. export {};