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