+ * Task error.
+ *
+ * @typeParam Data - Type of data sent to the worker triggering an error. This can only be structured-cloneable data.
+ */
+export interface TaskError<Data = unknown> {
+ /**
+ * Task name triggering the error.
+ */
+ readonly name: string
+ /**
+ * Error message.
+ */
+ readonly message: string
+ /**
+ * Data triggering the error.
+ */
+ readonly data?: Data
+}
+
+/**
+ * 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
+}
+
+/**
+ * Performance statistics computation.
+ *
+ * @internal