/** * (c) Phan Trung Nguyên * User: nguyenpl117 * Date: 3/15/2020 * Time: 3:04 PM * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Container } from './Container'; /** * Exposes the API to resolve and call bindings from the IoC container. The resolver * internally caches the IoC container lookup nodes to boost performance. */ export declare class Resovler { private container; private fallbackMethod?; private rcNamespaceKey?; private fallbackNamespace?; private lookupCache; /** * The namespace that will be used a prefix when resolving * bindings */ private prefixNamespace; constructor(container: Container, fallbackMethod?: string, rcNamespaceKey?: string, fallbackNamespace?: string); private getPrefixNamespace; /** * Resolves the namespace and returns it's lookup node */ resolve(namespace: string, prefixNamespace?: string | undefined): any; /** * Calls the namespace.method expression with any arguments that needs to * be passed. Also supports type-hinting dependencies. */ call(namespace: string, prefixNamespace?: string, args?: any[]): T; }