import type { TLazyModule } from "../types.js"; /** * Creates a lazily loaded module that will be dynamically imported when needed. * * @param {TLazyModule} lazy - Configuration object for the lazy module * @param {string} [lazy.module] - Name of the module to import. If not provided, a unique default name will be generated * @param {() => Promise} lazy.import - Function that returns a promise resolving to the module * @param {Record} [lazy.params] - Props to pass to the module when instantiated * @param {boolean} [lazy.collect] - Whether the module can be garbage collected * @param {HTMLElement|DocumentFragment} [lazy.loader] - Custom loader element to show while loading * @param {HTMLElement} [loader] - Optional loader element to show while module is loading * @returns {HTMLElement} Element that will be replaced with the loaded module * @throws {Error} When module configuration is undefined */ export declare function Lazy(lazy: TLazyModule, loader?: HTMLElement): HTMLElement;