import type { ContentType } from '@erudit-js/core/content/type'; import * as repository from './repository'; export type ContentNavMap = Map; export type Id2Id = Map; export type EruditServerContentNav = { id2Node: ContentNavMap; id2Root: ContentNavMap; id2Books: ContentNavMap; short2Full: Id2Id; } & typeof repository; export interface ContentNavNode { idPart: string; fullId: string; shortId: string; contentRelPath: string; position: number; skip: boolean; type: ContentType; parent?: ContentNavNode; children?: ContentNavNode[]; }