type Address = string; type Scope = string; declare global { namespace Transporter { /** * The address book is used to keep a record of all server addresses. Every * server must have a globally unique address. A server address is a lot * like a port number. It is used to route request to the correct server. * * The address book is a global singleton. The same address book is used * by all versions of transporter in the current execution context. * * You can inspect the address book from the `Transporter` namespace in the * global scope. */ const addressBook: Map>; } } export declare class UniqueAddressError extends Error { readonly name = "UniqueAddressError"; } /** * Adds an address to the address book. * * @throws {UniqueAddressError} If the address already exists. */ export declare function add(scope: Scope, address: Address): void; /** * Removes an address from the address book. */ export declare function release(scope: Scope, address: Address): void; export {}; //# sourceMappingURL=AddressBook.d.ts.map