/// /// /// /// import type { promises as fsPromises } from 'node:fs'; import type { X509Certificate } from 'node:crypto'; import type { Blob } from 'node:buffer'; import { MessagePort } from 'worker_threads'; import { ActionFunctions } from '../control'; import { ReactorCompositeOpt } from '../epic'; import { ForkWorkerInput, ForkWorkerOutput, WorkerControl } from './types'; export { fork } from './common'; export { WorkerControl } from './types'; export declare function createWorkerControl, O extends ActionFunctions = Record, LI extends ReadonlyArray = readonly [], LO extends ReadonlyArray = readonly []>(opts?: ReactorCompositeOpt): WorkerControl; export type ForkTransferablePayload = { content: T; transferList: (ArrayBuffer | MessagePort | fsPromises.FileHandle | X509Certificate | Blob)[]; };