UNPKG

@lifeart/gxt

Version:

<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">

16 lines (14 loc) • 783 B
import { Component } from '../component-class'; import { Root } from '../dom'; import { DOMApi } from '../dom-api'; import { isRehydrationScheduled } from './rehydration-state'; export { isRehydrationScheduled }; export type ApiFactory = (namespace?: string) => DOMApi; export type ApiFactoryWrapper = { factory: ApiFactory; }; export declare function nodeById(nodeId: string): HTMLElement | undefined; export declare function lastItemInStack(target: 'text' | 'node' | 'comment'): HTMLElement; export declare function itemFromRehydrationStack(): HTMLElement | undefined; export declare function withRehydration(componentCreationCallback: typeof Component<any>, args: Record<string, unknown>, targetNode: HTMLElement, // the node to render the component into root?: Root): void;