import { ActivationContext } from "./ActivationContext"; import { Descriptor, PartialServiceMap, TypeOfService, ContainerKeys } from "./interfaces"; export interface ReferenceDescriptorParams> { /** * The name of the descriptor */ name: K; /** * The flag that indicates that the referenced service isn't required to exist. * If the reference is optional and the referenced service doesn't exist, * the undefined or a default value will be returned. */ optional?: boolean; /** * a default value for the reference when the referenced service doesn't exist. */ default?: TypeOfService; /** * The service overrides */ services?: PartialServiceMap; } export declare class ReferenceDescriptor = ContainerKeys> implements Descriptor> { _name: K; _optional: boolean; _default: TypeOfService | undefined; _services: PartialServiceMap; constructor(opts: ReferenceDescriptorParams); /** This method activates the referenced service if one exists * @param context activation context which is used during current activation */ activate(context: ActivationContext): any; toString(): string; }