import type { ChildProcess } from 'node:child_process'; import type { RpcMethod, RpcRemoteMethod } from './types'; interface RpcWorkerBase { connect(): void; terminate(): void; readonly connected: boolean; readonly process: ChildProcess | undefined; } type RpcWorker = RpcWorkerBase & RpcRemoteMethod; declare function createRpcWorker(modulePath: string, data: unknown, memoryLimit?: number): RpcWorker; declare function getRpcWorkerData(): unknown; export { createRpcWorker, getRpcWorkerData, RpcWorker };