UNPKG

@knyt/luthier

Version:

A library for building standardized, type-safe native web components with full SSR and hydration support.

29 lines 897 B
import { type ReactiveController } from "@knyt/tasker"; /** * @internal scope: package */ export declare namespace HtmxObject { /** * Represents the `htmx` object as used by the KnytElement. */ type Internal = { process: (root: DocumentOrShadowRoot) => unknown; }; /** * Represents the `htmx` object as defined in the `htmx.org` package. * * @remarks * * This type is necessary to ensure compatibility with the `htmx.org` package, * because it's types are incorrect, and don't allow for processing ShadowRoots. */ type Compat = { process: (elt: Element | string) => void; }; } export declare class HtmxIntegration implements ReactiveController { #private; constructor(htmxInput: true | HtmxObject.Compat, shadowRoot: ShadowRoot); hostUpdated(): void; } //# sourceMappingURL=HtmxIntegration.d.ts.map