summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts')
-rw-r--r--g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts b/g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts
new file mode 100644
index 00000000..d1e93758
--- /dev/null
+++ b/g4f/Provider/npm/node_modules/undici/types/balanced-pool.d.ts
@@ -0,0 +1,18 @@
+import Pool from './pool'
+import Dispatcher from './dispatcher'
+import { URL } from 'url'
+
+export default BalancedPool
+
+declare class BalancedPool extends Dispatcher {
+ constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
+
+ addUpstream(upstream: string | URL): BalancedPool;
+ removeUpstream(upstream: string | URL): BalancedPool;
+ upstreams: Array<string>;
+
+ /** `true` after `pool.close()` has been called. */
+ closed: boolean;
+ /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
+ destroyed: boolean;
+}