import { Enum } from "./enum.js"; type Obj = Record; export type ExhaustiveMatcher, R> = { [P in Extract]: (v: Extract["data"]) => R; }; export type WildcardMatcher, R> = Partial> & { _: (v: T) => R; }; export type Matcher, R> = ExhaustiveMatcher | WildcardMatcher; export declare const match: , R>(value: T) => (matchers: Matcher) => R; export {};