import type { FolderConfig } from './getFolderConfig.ts'; export interface TocOptions extends FolderConfig { /** Home directory containing the data. Defaults to commandDir. */ dataDir?: string; /** Add the idCode to the TOC. Defaults to `false`. */ appendIDCode?: boolean; } export type FolderProcessor = (basename: string, folder: string, toc: TocEntry[], options: TocOptions) => Promise; export interface TocEntry { /** Path to the JSON file for this entry. */ file?: string; /** Whether this entry is the initially selected one. */ selected?: boolean; /** Name of the folder on disk. */ folderName?: string; /** Display name for the group. */ groupName?: string; /** Child TOC entries for nested groups. */ children?: TocEntry[]; [key: string]: unknown; } /** * Create toc.json for the full project. * @param commandDir - The command directory. * @param folderProcessor - Function to process each data folder. * @param options - Options for TOC creation. */ export declare function createToc(commandDir: string, folderProcessor: FolderProcessor, options?: TocOptions): Promise; //# sourceMappingURL=createToc.d.ts.map