import type { MultiFn2 } from "@thi.ng/defmulti" ; import { defmulti } from "@thi.ng/defmulti/defmulti" ; import type { ASTNode , Implementations } from "./api.js" ; export const runtime = < IMPL extends Implementations < ENV , RES > , ENV , RES > ( impls ) : MultiFn2 < ASTNode , ENV , RES > => defmulti < ASTNode , ENV , RES > ( ( x ) => x . type , { } , < any > impls ) ;