import type { ComponentEntry } from "./types.js"; /** * Folds entries into a `key → entry` map, as they render: a re-emitted key replaces its subtree but keeps the old * children its new `children` still names. * * @example * const byKey = buildElementsByKey(storedEntries); * const current = Object.values(byKey); // without the entries a re-emit dropped * * @example * const missingKeys = Object.values(byKey).flatMap((entry) => entry.children ?? []).filter((key) => !byKey[key]); */ export declare function buildElementsByKey(lines: ComponentEntry[]): Record;