import { IService, IServiceServer, IEtcd } from '@nestcloud/common'; import { ServiceOptions } from './interfaces/service-options.interface'; import { OnModuleDestroy, OnModuleInit } from '@nestjs/common'; export declare class EtcdService implements IService, OnModuleInit, OnModuleDestroy { private readonly client; private readonly options; private readonly namespace; private readonly logger; private services; private readonly self; private readonly serviceCallbackMaps; private readonly servicesCallbacks; private watcher; private timer; constructor(client: IEtcd, options: ServiceOptions); init(): Promise; onModuleInit(): Promise; onModuleDestroy(): Promise; getServiceNames(): string[]; getServiceServers(service: string, passing?: boolean): IServiceServer[]; getServices(): { [p: string]: IServiceServer[]; }; watch(service: string, callback: (services: IServiceServer[]) => void): void; watchServiceList(callback: (service: string[]) => void): void; private registerService; private cancelService; private initServices; private recreateServiceWatcher; private initServicesWatcher; }