/** * Interface for a reactive list of hosts, i.e. for use with the dataplane client. */ export interface HostList { get: () => Iterable; onUpdate(handler: HostListHandler): void; } type HostListHandler = (hosts: Iterable) => void; /** * Maintains a reactive HostList based on a simple setter. */ export declare class BasicHostList implements HostList { private hosts; private handlers; constructor(hosts: Iterable); get(): Iterable; set(hosts: Iterable): void; private update; onUpdate(handler: HostListHandler): void; } export {};