/** * ForKeyed(key, generator, mapper) * * A keyed variant of For. The generator returns an array of objects; each * object must have a unique value at `key`. The mapper is called exactly once * per unique key and its returned DOM node is reused for the lifetime of that * key — even if the object moves position in the array. * * The Computed only drives structural changes: insertion, removal, and * reordering. Internal reactivity for each item is the mapper's own * responsibility (e.g. its own Computed / signals set up inside the mapper). * * Usage: * ForKeyed( * "id", * () => proxy as { id: string }[], * (item) => buildItemElement(item.id, proxy[indexOf(item.id)]) * ) */ export declare function ForKeyed>(key: K, generator: (() => T[]) | { get(): T[]; }, mapper: (item: T) => JSX.Element): { to_html(): Element; }; //# sourceMappingURL=For.d.ts.map