+import type { AsyncResource } from 'node:async_hooks'
import type { EventLoopUtilization } from 'node:perf_hooks'
import type { MessagePort, TransferListItem } from 'node:worker_threads'
-import type { KillBehavior } from './worker/worker-options'
+
+import type { KillBehavior } from './worker/worker-options.js'
/**
* Worker error.
* The worker node key executing the task.
*/
readonly workerNodeKey: number
+ /**
+ * The asynchronous resource used to track the task execution.
+ */
+ readonly asyncResource?: AsyncResource
}
export type Writable<T> = { -readonly [P in keyof T]: T[P] }