Urara-Blog/node_modules/.pnpm-store/v3/files/65/176bccf86644bf92dda222603c834b4f8cbb55ca5aa4faecd7d9841f305bbf8c6d92bca96ca127a03471f6905ba55247116a5f112ca04302d10af62946c60c
2022-08-14 01:14:53 +08:00

19 lines
631 B
Text

import Client = require('./client')
import Pool = require('./pool')
import Dispatcher = require('./dispatcher')
import { URL } from 'url'
export = BalancedPool
declare class BalancedPool extends Dispatcher {
constructor(url: string | URL | string[], options?: Pool.Options);
addUpstream(upstream: string): BalancedPool;
removeUpstream(upstream: string): 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;
}