import { Consul } from 'consul'; import { OnModuleInit } from '@nestjs/common'; import { IConfig } from '@nestcloud/common'; import { ConfigStore } from './config.store'; export declare class ConsulConfig implements IConfig, OnModuleInit { private readonly store; private readonly consul; private readonly name; private readonly retryInterval; private watcher; private readonly logger; constructor(store: ConfigStore, consul: Consul, name: string); onModuleInit(): Promise; watch(path: string, callback?: (data: T) => void): void; get(path?: string, defaults?: any): T; set(path: string, value: any): Promise; private createWatcher; }