//#region src/exhaustiveMatch.d.ts declare function exhaustiveMatch(value: T): { with: (pattern: { [K in T]: "_nxt" | "_never" | (() => R) }) => R; withObject: (pattern: Record) => R; }; declare function exhaustiveMatchObjUnion, D extends keyof T, K extends T[D] & string>(obj: T, key: D): { with: (pattern: { [P in K]: "_never" | ((props: Extract>) => R) }) => R; }; //#endregion export { exhaustiveMatch, exhaustiveMatchObjUnion };