/** * Provide a series of type guard predicates that satisfies the input, * and a function that will resolve the value if it matches the type guard. * * This function is similar to `match`, but resolves 2 arguments input cases * * !Note: There is a big difference between `match` and `match2` * `match2` does not force you to provide all combinations, so it can return undefined, * as return type mentions. * There is technical and coding experience limitation. In order to make `match2` be strict as `match`, * the use will have to provide all possible cases between first argument and the second one. But this is already * cartesian product and it can get huge very easy. For 3x3 input, you get 9 combinations. And yes, you guessed it, * for 4x4, 16 combinations. But in real world usually you need 4 combinations. * But at the same moment it enforces you to satisfy entire input type in at least one of type guards. And this is * what makes it different from `if else` statement. */ export declare function match2(...args: [[(t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R]]): (t: T, t2: T2) => R; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ] ]): (t: T, t2: T2) => R | R2 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ] ]): (t: T, t2: T2) => R | R2 | R3 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ], [ (t: T) => t is A8, (t2: T2) => t2 is B8, (a: A8, b: B8) => R8 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | R8 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ], [ (t: T) => t is A8, (t2: T2) => t2 is B8, (a: A8, b: B8) => R8 ], [ (t: T) => t is A9, (t2: T2) => t2 is B9, (a: A9, b: B9) => R9 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ], [ (t: T) => t is A8, (t2: T2) => t2 is B8, (a: A8, b: B8) => R8 ], [ (t: T) => t is A9, (t2: T2) => t2 is B9, (a: A9, b: B9) => R9 ], [ (t: T) => t is A10, (t2: T2) => t2 is B10, (a: A10, b: B10) => R10 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ], [ (t: T) => t is A8, (t2: T2) => t2 is B8, (a: A8, b: B8) => R8 ], [ (t: T) => t is A9, (t2: T2) => t2 is B9, (a: A9, b: B9) => R9 ], [ (t: T) => t is A10, (t2: T2) => t2 is B10, (a: A10, b: B10) => R10 ], [ (t: T) => t is A11, (t2: T2) => t2 is B11, (a: A11, b: B11) => R11 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11 | undefined; export declare function match2(...args: [ [ (t: T) => t is A, (t2: T2) => t2 is B, (a: A, b: B) => R ], [ (t: T) => t is A2, (t2: T2) => t2 is B2, (a: A2, b: B2) => R2 ], [ (t: T) => t is A3, (t2: T2) => t2 is B3, (a: A3, b: B3) => R3 ], [ (t: T) => t is A4, (t2: T2) => t2 is B4, (a: A4, b: B4) => R4 ], [ (t: T) => t is A5, (t2: T2) => t2 is B5, (a: A5, b: B5) => R5 ], [ (t: T) => t is A6, (t2: T2) => t2 is B6, (a: A6, b: B6) => R6 ], [ (t: T) => t is A7, (t2: T2) => t2 is B7, (a: A7, b: B7) => R7 ], [ (t: T) => t is A8, (t2: T2) => t2 is B8, (a: A8, b: B8) => R8 ], [ (t: T) => t is A9, (t2: T2) => t2 is B9, (a: A9, b: B9) => R9 ], [ (t: T) => t is A10, (t2: T2) => t2 is B10, (a: A10, b: B10) => R10 ], [ (t: T) => t is A11, (t2: T2) => t2 is B11, (a: A11, b: B11) => R11 ], [ (t: T) => t is A12, (t2: T2) => t2 is B12, (a: A12, b: B12) => R12 ] ]): (t: T, t2: T2) => R | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11 | R12 | undefined;