import 'reflect-metadata' ; import { SpringCloudConfig } from './SpringCloudConfig' ; import Container from './Container' ; import { ConfigObject , CloudConfigOptions } from './models' ; export * from './models' ; export * from './SpringCloudConfig' ; export const Config = Container . get < SpringCloudConfig > ( SpringCloudConfig ) ; export const load = async ( cloudConfigOptions ) : Promise < ConfigObject > => { return await Config . load ( cloudConfigOptions ) ; } ; export const instance = ( ) : ConfigObject => { return Config . instance ( ) ; } ;