export declare type MatchedResult = { matched: true; result: M; }; export declare type UnmatchedResult = { matched: false; }; export declare type MatchResult = UnmatchedResult | MatchedResult; export declare type MatchResultAny = MatchResult; /** * reperesent matcher result which is matched */ export declare type Matched = Extract>; /** * check for matched result */ export declare function isMatched(matchResult: MR): matchResult is Matched;