+export interface WorkerError<Data = unknown> {
+ /**
+ * Task function 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
+}
+
+/**
+ * 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
+}