import { type ProxyOrClone } from "https://dotland.deno.dev/x/scaffold@0.3.0/src/deps/comlink.ts";
Proxies T
if it is a ProxyMarked
, clones it otherwise (as handled by structured cloning and transfer handlers).
definition: T extends ProxyMarked ? Remote<T> : T