import 'reflect-metadata'; import { Container } from 'inversify'; import { Constructable } from './types'; export declare const APPLICATION_ROOT_CONTAINER: Container; export interface IContainer { get: (someClass: Constructable) => T; getAsync: (someClass: Constructable) => Promise; } /** * Get instance from container * * @alpha */ export declare function getFromContainerAsync(clazz: Constructable): Promise; export declare function getFromContainer(clazz: Constructable): T; /** * Register a class into dependency-injection container * @example * ```typescript * class ThirdPartyClass { * // business logic... * }; * * registerClass(ThirdPartyClass); * * ``` * Then the `ThirdPartyClass` will be managed by DI container in runtime. */ export declare function registerClass(clazz: T): T; //# sourceMappingURL=container.d.ts.map