import { type ChildAttribute, type Html } from 'foldkit/html'; /** Per-item render info passed to the consumer's `toView`. Generic over * `Value extends string`: the item value is typed as the consumer's union * (typically a route tag) so `toView` can switch on it without casting. */ export type ItemInfo = Readonly<{ value: Value; index: number; isCurrent: boolean; link: ReadonlyArray; }>; /** Render-time payload published to the consumer's `toView`. * * - `nav`: ARIA attributes for the wrapping navigation landmark. Carries * `aria-label` only; the `