import { type Rec } from "@agyemanjp/standard"; import type { UITreePosition } from "./_identity"; import type { ComponentElement, UIElement } from "./common"; import type { StdEltProps } from "../common"; /** Get component instances cache, used for retaining comp elt state aross renders, and memoizing comp elt invocations. * Stored in document object, hence not used on server, since UI is constructed from scratch on each request */ export declare function getCache(): ComponentInstancesCache | undefined; export declare const COMPONENT_INSTANCES_CACHE_ID: string; export type ComponentInstancesCache = Rec; export type ComponentInstanceInfo

= { /** Position this instance id represents */ pos: UITreePosition; /** Element inhabiting this position */ elt: ComponentElement

; /** Last result of executing element */ result?: UIElement; };