import type { BulkheadOptions, BulkheadHandle } from '../types.js'; /** * Creates a bulkhead (concurrency limiter) policy that limits the number * of concurrent executions of the wrapped operation. * * Returns an object with `execute` (the policy function) and `handle` * (an interface to inspect the bulkhead's running / queued counts). * * @example * ```ts * const bh = bulkhead({ maxConcurrent: 5, maxQueue: 10 }); * const result = await bh.execute(() => callApi()); * console.log(bh.handle.running); // number of active calls * ``` */ export declare function bulkhead(options?: BulkheadOptions): { execute: (fn: () => Promise) => Promise; handle: BulkheadHandle; }; //# sourceMappingURL=bulkhead.d.ts.map