UNPKG

@magnusbag/livets-core

Version:

TypeScript API layer for LiveTS framework

24 lines 936 B
/** * Component rendering utilities for LiveTS */ import { LiveView } from './live-view'; import type { ComponentProps, RenderOptions } from './types'; export declare class ComponentRenderer { /** * Renders a component to an HTML string */ static renderToString<T extends LiveView>(ComponentClass: new (props?: ComponentProps) => T, props?: ComponentProps): Promise<string>; /** * Renders a component with layout wrapper */ static renderWithLayout<T extends LiveView>(ComponentClass: new (props?: ComponentProps) => T, props?: ComponentProps, options?: RenderOptions): Promise<string>; /** * Hydrates a component for client-side interactivity */ static hydrateComponent<T extends LiveView>(component: T, connection_id: string): Promise<void>; /** * Wraps HTML content in a full page layout */ private static wrapInLayout; } //# sourceMappingURL=renderer.d.ts.map