+export interface TaskError<Data = unknown> {
+ /**
+ * Error message.
+ */
+ readonly message: string
+ /**
+ * Data passed to the worker triggering the error.
+ */
+ readonly data?: Data
+}
+
+/**
+ * Task performance.
+ *
+ * @internal
+ */
+export interface TaskPerformance {
+ /**
+ * Task performance timestamp.
+ */
+ readonly timestamp: number
+ /**
+ * Task runtime.
+ */
+ readonly runTime?: number
+ /**
+ * Task event loop utilization.
+ */
+ readonly elu?: EventLoopUtilization
+}
+
+/**
+ * Performance statistics computation.
+ *
+ * @internal
+ */
+export interface WorkerStatistics {
+ runTime: boolean
+ elu: boolean
+}