+ * Task performance.
+ *
+ * @internal
+ */
+export interface TaskPerformance {
+ /**
+ * Task name.
+ */
+ readonly name: string
+ /**
+ * Task performance timestamp.
+ */
+ readonly timestamp: number
+ /**
+ * Task runtime.
+ */
+ readonly runTime?: number
+ /**
+ * Task event loop utilization.
+ */
+ readonly elu?: EventLoopUtilization
+}
+
+/**
+ * Worker task performance statistics computation settings.
+ *
+ * @internal
+ */
+export interface WorkerStatistics {
+ /**
+ * Whether the worker computes the task runtime or not.
+ */
+ readonly runTime: boolean
+ /**
+ * Whether the worker computes the task event loop utilization (ELU) or not.
+ */
+ readonly elu: boolean
+}
+
+/**
+ * Message object that is passed as a task between main worker and worker.
+ *
+ * @typeParam Data - Type of data sent to the worker. This can only be structured-cloneable data.
+ * @internal