import { IndexPath } from './indexPath.js'; import { BaseOptions } from './options.js'; export type DiagramType = 'directory' | 'box'; export type DiagramOptions = BaseOptions & { getLabel: (node: T, indexPath: IndexPath) => string; type?: DiagramType; flattenSingleChildNodes?: boolean; }; /** * Generate a diagram of the tree, as a string. */ export declare function diagram(node: T, options: DiagramOptions): string;