UNPKG

@knyt/luthier

Version:

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

16 lines 688 B
import { type Reference } from "@knyt/artisan"; import { type ReactiveController, type ReactiveControllerHost } from "@knyt/tasker"; /** * A controller that manages deferred content rendering based on the state of associated promises. * * @internal scope: package */ export declare class DeferredContentController implements ReactiveController { #private; readonly isLoading$: Reference.Readonly<boolean>; constructor(host: ReactiveControllerHost & HTMLElement); registerPromise<T extends Promise<any>>(promise: T): T; unregisterPromise<T extends Promise<any>>(promise: T): void; hostConnected(): void; } //# sourceMappingURL=DeferredContentController.d.ts.map