import type { EponymeNavigationNode } from '../types/eponyme-navigation.js'; export interface EponymeNavigationRow { /** Stable across renders, so a virtualised list can key on it. */ key: string; kind: EponymeNavigationNode['kind'] | 'more'; path: string; label: string; depth: number; /** Set on the nodes that hold children, `undefined` on the leaves. */ open?: boolean; } export interface FlattenEponymeNavigationOptions { openFolders: string[]; /** Reveals every folder while a search is active, without touching `openFolders`. */ forceOpen?: boolean; /** Collections with entries left to fetch, which get a trailing row to load them. */ hasMore?: (collection: string) => boolean; } /** * Turns the tree into the flat list of rows the sidebar actually shows: only what is visible, in reading * order, with the nesting kept as a `depth`. */ export declare function flattenEponymeNavigationTree(nodes: EponymeNavigationNode[], options: FlattenEponymeNavigationOptions): EponymeNavigationRow[];