+ /**
+ * Pool type.
+ *
+ * If it is `'dynamic'`, it provides the `max` property.
+ */
+ readonly type: PoolType
+ /**
+ * Pool maximum size.
+ */
+ readonly size: number
+ /**
+ * Pool worker nodes.
+ */
+ readonly workerNodes: Array<WorkerNode<Worker, Data>>
+ /**
+ * Emitter on which events can be listened to.
+ *
+ * Events that can currently be listened to:
+ *
+ * - `'full'`: Emitted when the pool is dynamic and full.
+ * - `'busy'`: Emitted when the pool is busy.
+ */
+ readonly emitter?: PoolEmitter
+ /**
+ * Executes the function specified in the worker constructor with the task data input parameter.
+ *
+ * @param data - The task input data for the specified worker function. This can only be serializable data.
+ * @param name - The name of the worker function to execute. If not specified, the default worker function will be executed.
+ * @returns Promise that will be fulfilled when the task is completed.
+ */
+ execute: (data?: Data, name?: string) => Promise<Response>
+ /**
+ * Shutdowns every current worker in this pool.
+ */
+ destroy: () => Promise<void>
+ /**
+ * Sets the worker choice strategy in this pool.
+ *
+ * @param workerChoiceStrategy - The worker choice strategy.
+ * @param workerChoiceStrategyOptions - The worker choice strategy options.
+ */
+ setWorkerChoiceStrategy: (
+ workerChoiceStrategy: WorkerChoiceStrategy,
+ workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
+ ) => void
+ /**
+ * Sets the worker choice strategy options in this pool.
+ *
+ * @param workerChoiceStrategyOptions - The worker choice strategy options.
+ */
+ setWorkerChoiceStrategyOptions: (
+ workerChoiceStrategyOptions: WorkerChoiceStrategyOptions
+ ) => void
+ /**
+ * Enables/disables the worker tasks queue in this pool.
+ *
+ * @param enable - Whether to enable or disable the worker tasks queue.
+ * @param tasksQueueOptions - The worker tasks queue options.
+ */
+ enableTasksQueue: (
+ enable: boolean,
+ tasksQueueOptions?: TasksQueueOptions
+ ) => void
+ /**
+ * Sets the worker tasks queue options in this pool.
+ *
+ * @param tasksQueueOptions - The worker tasks queue options.
+ */
+ setTasksQueueOptions: (tasksQueueOptions: TasksQueueOptions) => void