/** * tradjs/client — Client-Side Renderer * * Pluggable VDOM reconciler with replaceable diffing strategies: * * 1. KEYED DIFF — O(n log n) via key→fiber map + LIS for list mutations. * 2. SEQUENTIAL DIFF — O(n) index-based for static/non-keyed children. * 3. PROPERTY PATCH — In-place attribute updates, preserves event listeners. * * The reconciler is configurable via `setReconciler()`. By default, `auto` * mode inspects children for keys and selects the best strategy per diff. * * Strategies are defined in `src/client/reconcilers/` and implement the * Reconciler interface. See reconcilers/types.ts for the contract. * * Zero dependencies. ~2KB gzipped. */ import { Fragment, type VNode, type Child, type Component, type Props } from "./types"; import type { Reconciler, ReconcilerName } from "./reconcilers/types"; export interface Fiber { node: Node | null; vnode: VNode | Child; parent: Fiber | null; children: Fiber[]; listeners: Map; key: string | number | null; } export interface RenderOptions { /** Override reconciler strategy for this render call only. */ reconciler?: ReconcilerName | Reconciler; } /** * Render a VNode tree into a container. * First call: mounts the tree. * Subsequent calls: diffs against the previous tree and patches the DOM. * * @param options.reconciler Override reconciler for this render only. */ export declare function render(vnode: VNode | null, container: HTMLElement, options?: RenderOptions): Fiber; /** * Set the global reconciliation strategy. * Can be overridden per-render via `render(vnode, container, { reconciler }))`. */ export declare function setReconciler(strategy: ReconcilerName | Reconciler): void; /** Get the current global reconciler name/function. */ export declare function getReconciler(): ReconcilerName | Reconciler; export declare function memo

>(Component: (props: P) => any, compare?: (oldProps: P, newProps: P) => boolean): typeof Component; export declare function createElement(type: string | Component | typeof Fragment, props: Props | null, ...children: Child[]): VNode; export declare function jsx(type: any, props: any, key?: any): VNode; export declare const jsxs: typeof jsx; export declare const jsxDEV: typeof jsx; //# sourceMappingURL=render.d.ts.map