+ readonly ready?: boolean
+ /**
+ * Whether the worker computes the given statistics or not.
+ */
+ readonly statistics?: WorkerStatistics
+ /**
+ * Task function serialized to string.
+ */
+ readonly taskFunction?: string
+ /**
+ * Task function operation:
+ * - `'add'` - Add a task function.
+ * - `'remove'` - Remove a task function.
+ * - `'default'` - Set a task function as default.
+ */
+ readonly taskFunctionOperation?: 'add' | 'default' | 'remove'
+ /**
+ * Whether the task function operation is successful or not.
+ */
+ readonly taskFunctionOperationStatus?: boolean
+ /**
+ * Task function properties.
+ */
+ readonly taskFunctionProperties?: TaskFunctionProperties
+ /**
+ * Task functions properties.
+ */
+ readonly taskFunctionsProperties?: TaskFunctionProperties[]
+ /**
+ * Task performance.
+ */
+ readonly taskPerformance?: TaskPerformance
+ /**
+ * Worker error.
+ */
+ readonly workerError?: WorkerError<ErrorData>
+ /**
+ * Worker id.
+ */
+ readonly workerId?: number
+}
+
+/**
+ * An object holding the task execution response promise resolve/reject callbacks.
+ * @typeParam Response - Type of execution response. This can only be structured-cloneable data.
+ * @internal
+ */
+export interface PromiseResponseWrapper<Response = unknown> {
+ /**
+ * The asynchronous resource used to track the task execution.
+ */
+ readonly asyncResource?: AsyncResource
+ /**
+ * Reject callback to reject the promise.
+ */
+ readonly reject: (reason?: unknown) => void
+ /**
+ * Resolve callback to fulfill the promise.
+ */
+ readonly resolve: (value: PromiseLike<Response> | Response) => void
+ /**
+ * The worker node key executing the task.
+ */
+ readonly workerNodeKey: number