import { type AnyProps, type AttributeDictionary, type HTMLElementTagName } from "@knyt/weaver"; import type { KnytElement } from "./KnytElement.ts"; import type { ElementDefinition } from "./types.ts"; /** * @public */ export type LazyElementDefinition, A extends AttributeDictionary = KnytElement.ToAttributes> = ElementDefinition.Fn

& Omit, "Element"> & { /** * @returns A promise that resolves to the constructor of the custom element. */ readonly Element: () => Promise; }; /** * * @param tagName * @param importer * @returns */ export declare function lazy(tagName: U, importer: () => Promise<{ default: ElementDefinition; }>): LazyElementDefinition; //# sourceMappingURL=lazy.d.ts.map