1 | /**
|
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
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 | export declare type Callbacks = {
|
8 | foundSubsequence: FoundSubsequence;
|
9 | isCommon: IsCommon;
|
10 | };
|
11 |
|
12 | declare function diffSequence(
|
13 | aLength: number,
|
14 | bLength: number,
|
15 | isCommon: IsCommon,
|
16 | foundSubsequence: FoundSubsequence,
|
17 | ): void;
|
18 | export default diffSequence;
|
19 |
|
20 | declare type FoundSubsequence = (
|
21 | nCommon: number, // caller can assume: 0 < nCommon
|
22 | aCommon: number, // caller can assume: 0 <= aCommon && aCommon < aLength
|
23 | bCommon: number,
|
24 | ) => void;
|
25 |
|
26 | /**
|
27 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
28 | *
|
29 | * This source code is licensed under the MIT license found in the
|
30 | * LICENSE file in the root directory of this source tree.
|
31 | *
|
32 | */
|
33 | declare type IsCommon = (
|
34 | aIndex: number, // caller can assume: 0 <= aIndex && aIndex < aLength
|
35 | bIndex: number,
|
36 | ) => boolean;
|
37 |
|
38 | export {};
|