import { DIContext } from "../../common/domain/DIContext.js"; import { InjectorService, TokenProvider, type UseImportTokenProviderOpts } from "../../common/index.js"; /** * Tool to run test with lightweight DI sandbox. */ export declare class DITest { static get injector(): InjectorService; static create(settings?: Partial): Promise; static createContainer(): Promise; /** * Create a new injector with the right default services */ static createInjector(settings?: any): InjectorService; /** * Resets the test injector of the test context, so it won't pollute your next test. Call this in your `tearDown` logic. */ static reset(): Promise; /** * Invoke a provider and return a fresh instance * @param target * @param providers */ static invoke(target: TokenProvider, providers?: UseImportTokenProviderOpts[]): Promise; /** * Return the instance from injector registry * @param target */ static get(target: TokenProvider): T; static createDIContext(): DIContext; protected static configure(settings?: Partial): Partial; }