/** * Copyright (c) 2020 Dorian Cortes, Gary Valverde * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { MapFn } from "../types/context"; /** * @param providerTag Provider tag name * @param mapFn Function to map provider value */ export declare type Constructor = { new (...args: any[]): T; }; interface ClassDescriptor { kind: 'class'; elements: ClassElement[]; finisher?: (clazz: Constructor) => undefined | Constructor; } interface ClassElement { kind: 'field' | 'method'; key: PropertyKey; placement: 'static' | 'prototype' | 'own'; initializer?: Function; extras?: ClassElement[]; finisher?: (clazz: Constructor) => undefined | Constructor; descriptor?: PropertyDescriptor; } export declare const consume: (providerTag: string, mapFn?: MapFn | undefined) => (classOrDescriptor: ClassDescriptor | Constructor) => any; export {};