+ /**
+ * Measurement to use in worker choice strategy supporting it.
+ */
+ readonly measurement?: Measurement
+ /**
+ * Runtime options.
+ *
+ * @defaultValue \{ median: false \}
+ */
+ readonly runTime?: MeasurementOptions
+ /**
+ * Wait time options.
+ *
+ * @defaultValue \{ median: false \}
+ */
+ readonly waitTime?: MeasurementOptions
+ /**
+ * Event loop utilization options.
+ *
+ * @defaultValue \{ median: false \}
+ */
+ readonly elu?: MeasurementOptions
+ /**
+ * Worker weights to use for weighted round robin worker selection strategies.
+ * A weight is tasks maximum execution time in milliseconds for a worker node.
+ *
+ * @defaultValue Weights computed automatically given the CPU performance.
+ */
+ weights?: Record<number, number>
+}
+
+/**
+ * Measurement statistics requirements.
+ *
+ * @internal
+ */
+export interface MeasurementStatisticsRequirements {
+ /**
+ * Requires measurement aggregate.
+ */
+ aggregate: boolean
+ /**
+ * Requires measurement average.
+ */
+ average: boolean
+ /**
+ * Requires measurement median.
+ */
+ median: boolean