import { type Rec } from "@agyemanjp/standard"; import type { StdEltProps } from "../common"; import { type DOMElement } from "../html"; import { type UIElement, type IntrinsicElement, type ProperElement, type ValueElement } from "./common"; import { type UITreePosition } from "./_identity"; export declare function mountElement(uiElt: UIElement, domContainerElt: HTMLElement): void; /** Renders an UI element to a DOM node */ export declare function render(elt: UIElement, position?: UITreePosition): DOMElement | DocumentFragment | Text | undefined; /** Renders an UI element to an html string */ export declare function renderToString

(elt: UIElement

, position?: UITreePosition): string; /** Get leaf of input element, by recursively executing it as far as possible, and injecting standard attributes. * @argument position — Position of input element in UI tree. Always passed (even on server, * for identifying component instances that state changes would later apply to in-browser) * @returns An intrinsic or value element that is the leaf of the input element */ export declare function getLeaf

(elt: ProperElement

, position?: UITreePosition): IntrinsicElement | ValueElement; /** Merge new partial props over existing props of a proper element */ /** Re-renders part of the UI represented by input element; For execution on browser only */