import type { AbortSignal } from 'node-abort-controller'; declare type Task = (signal?: AbortSignal) => Promise; interface Pool { submit(task: Task, signal?: AbortSignal): Promise; size: number; readonly pending: number; readonly drained: Promise; } declare function createPool(size: number): Pool; export { Pool, createPool };