/** biome-ignore-all lint/suspicious/noExplicitAny: */ import type { ProxyMarked, Remote } from 'comlink'; import type { AsyncResult, PromiseOr, StructuredCloneable } from '@chzky/core'; import { BadResourceError, UnexpectedError } from '@chzky/core'; export declare function spawn, O extends StructuredCloneable>(purefn: (...args: T) => PromiseOr): { join: (...args: T) => AsyncResult; close: () => void; }; export type ProxyValue = T & ProxyMarked & { /** ### `deref` : 解除数据引用 调用该方法会将代理和暴露的对象从消息通道中分离,从而允许两端都被垃圾回收。 */ deref: (wrap_obj: Remote) => void; }; export declare function box(obj: T): ProxyValue; //# sourceMappingURL=core.d.ts.map