/** * Custom-element definition helpers for compound components. * * In the lazy-loaded build every tag is registered up front (as a proxy), so a * child can always reach its parent's `@Method`s. In the `dist/components` * custom-elements build each tag is defined by its own module, in whatever * order those modules resolve — over a CDN that can be seconds apart. A child * that calls `closest('seki-parent').someMethod()` while the parent is still * an un-upgraded `HTMLElement` throws "someMethod is not a function" and the * component silently loses its initial state (#314). * * `whenDefined(tag)` resolves immediately when the tag is already registered * or when there is no `customElements` registry (SSR, some test runners), so * awaiting it costs nothing on the happy path. */ /** True when `tag` is registered (or when there is no registry to ask). */ export declare function isDefined(tag: string): boolean; /** Resolves once `tag` is registered. Never rejects. */ export declare function whenDefined(tag: string): Promise;