import { LocalsContainer } from "../domain/LocalsContainer.js"; import type { UseImportTokenProviderOpts } from "../interfaces/ImportTokenProviderOpts.js"; /** * Get or create the current locals container for request-scoped providers. * * Returns the global locals container used for storing request-scoped provider instances. * Can optionally create a new container with custom providers. * * ### Usage * * ```typescript * import {localsContainer} from "@tsed/di"; * * // Get current locals * const locals = localsContainer(); * * // Create with custom providers * const locals = localsContainer({ * providers: [{token: MyService, use: mockInstance}], * rebuild: true * }); * ``` * * @param options Configuration options * @param options.providers Optional array of provider overrides * @param options.rebuild Whether to mark providers for rebuilding * @returns The locals container instance * @public */ export declare function localsContainer({ providers, rebuild }?: { providers?: UseImportTokenProviderOpts[]; rebuild?: boolean; }): LocalsContainer; export declare function invokeOptions(): any; /** * Detach and stage the current locals container. * * Removes the global locals reference and saves it for cleanup. * Used internally to manage request scope lifecycle. * * @public */ export declare function detachLocalsContainer(): void; export declare function cleanAllLocalsContainer(): void;