import type { CodebaseIndex, DirectoryTreeOptions, DirectoryTreeResult } from './types.js';
export interface BuildDirectoryTreeOptions extends DirectoryTreeOptions {
    countTokens?: (text: string) => number;
}
export declare function directoryTreeHeader(result: Pick<DirectoryTreeResult, 'root' | 'mode' | 'totalFiles'>): string;
export declare function directoryTreeFooter(result: Pick<DirectoryTreeResult, 'truncated' | 'truncatedPaths'>): string | null;
export declare function buildDirectoryTree(index: CodebaseIndex, options?: BuildDirectoryTreeOptions): DirectoryTreeResult;
