import { Container } from '@tiejs/common' ; import { Token } from './Token' ; import { ObjectType } from './types/ObjectType' ; import { ServiceIdentifier } from './types/ServiceIdentifier' ; import { ServiceMetadata } from './types/ServiceMetadata' ; /**
 * Service container.
 */ export class Tester { /**
     * Retrieves the service with given name or type from the service container.
     * Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
     */ static get < T > ( type ) ; /**
     * Retrieves the service with given name or type from the service container.
     * Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
     */ static get < T > ( id ) ; /**
     * Retrieves the service with given name or type from the service container.
     * Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
     */ static get < T > ( id ) ; /**
     * Retrieves the service with given name or type from the service container.
     * Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
     */ static get < T > ( service ) ; /**
     * Retrieves the service with given name or type from the service container.
     * Optionally, parameters can be passed in case if instance is initialized in the container for the first time.
     */ static get < T > ( identifier ) { return Container . get ( identifier as any ) ; } /**
     * Sets a value for the given type or service name in the container.
     */ static mock < T , K extends keyof T > ( service ) ; /**
     * Sets a value for the given type or service name in the container.
     */ static mock ( type , value ) ; /**
     * Sets a value for the given type or service name in the container.
     */ static mock ( name , value ) ; /**
     * Sets a value for the given type or service name in the container.
     */ static mock ( token , value ) ; /**
     * Sets a value for the given type or service name in the container.
     */ static mock < T , K extends keyof T > ( values ) ; /**
     * Sets a value for the given type or service name in the container.
     */ static mock ( identifierOrServiceMetadata , value ? ) { Container . set ( identifierOrServiceMetadata as any , value ) ; return this ; } }