import { TaintedModule } from "./types.js"; //#region src/registry.d.ts /** * Registers a module as tainted, meaning it contains one or more accesses * to server-only environment variables. If the module was previously registered, * the existing record is replaced with the new one. * * @param taintedModule - The tainted module record to store. */ declare function registerTaintedModule(taintedModule: TaintedModule): void; /** * Retrieves a tainted module record by its absolute file path. * * @param moduleId - The absolute file path of the module to look up. * @returns The tainted module record, or `undefined` if the module is not registered. */ declare function getTaintedModule(moduleId: string): TaintedModule | undefined; /** * Returns all currently registered tainted modules as an array. * * @returns An array containing every tainted module record in the registry. */ declare function getAllTaintedModules(): TaintedModule[]; /** * Removes a single module from the tainted registry. * Used during HMR when a file is updated and must be re-evaluated from scratch. * * @param moduleId - The absolute file path of the module to remove. */ declare function clearTaintedModule(moduleId: string): void; /** * Removes all modules from the tainted registry. * Called at the start of each build to ensure state does not carry over * from a previous run. */ declare function clearAllTaintedModules(): void; /** * Returns whether at least one tainted module is currently registered. * * @returns `true` if the registry contains one or more tainted modules. */ declare function hasTaintedModules(): boolean; //#endregion export { clearAllTaintedModules, clearTaintedModule, getAllTaintedModules, getTaintedModule, hasTaintedModules, registerTaintedModule }; //# sourceMappingURL=registry.d.ts.map