/** * 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. * * In other words this is a type safe `if else` statement. * * In case the provided type guards list doesn't cover the entire input type, * you'll get a type error at compile time. */ export declare function match(...args: [[(t: T) => t is A, (a: A) => R]]): (t: T) => R; export declare function match(...args: [[(t: T) => t is A, (a: A) => R1], [(t: T) => t is B, (a: B) => R2]]): (t: T) => R1 | R2; export declare function match(...args: [[(t: T) => t is A, (a: A) => R1], [(t: T) => t is B, (a: B) => R2], [(t: T) => t is C, (a: C) => R3]]): (t: T) => R1 | R2 | R3; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ] ]): (t: T) => R1 | R2 | R3 | R4; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ], [ (t: T) => t is I, (a: I) => R9 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ], [ (t: T) => t is I, (a: I) => R9 ], [ (t: T) => t is J, (a: J) => R10 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ], [ (t: T) => t is I, (a: I) => R9 ], [ (t: T) => t is J, (a: J) => R10 ], [ (t: T) => t is K, (a: K) => R11 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ], [ (t: T) => t is I, (a: I) => R9 ], [ (t: T) => t is J, (a: J) => R10 ], [ (t: T) => t is K, (a: K) => R11 ], [ (t: T) => t is L, (a: L) => R12 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11 | R12; export declare function match(...args: [ [ (t: T) => t is A, (a: A) => R1 ], [ (t: T) => t is B, (a: B) => R2 ], [ (t: T) => t is C, (a: C) => R3 ], [ (t: T) => t is D, (a: D) => R4 ], [ (t: T) => t is E, (a: E) => R5 ], [ (t: T) => t is F, (a: F) => R6 ], [ (t: T) => t is G, (a: G) => R7 ], [ (t: T) => t is H, (a: H) => R8 ], [ (t: T) => t is I, (a: I) => R9 ], [ (t: T) => t is J, (a: J) => R10 ], [ (t: T) => t is K, (a: K) => R11 ], [ (t: T) => t is L, (a: L) => R12 ], [ (t: T) => t is M, (a: M) => R13 ] ]): (t: T) => R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 | R9 | R10 | R11 | R12 | R13;