repomix
Version:
A tool to pack repository contents to single file for AI consumption
12 lines (11 loc) • 366 B
TypeScript
import type { FileTokenInfo } from './types.js';
export interface FileWithTokens {
path: string;
tokens: number;
}
export interface TreeNode {
_files?: FileTokenInfo[];
_tokenSum?: number;
[key: string]: TreeNode | FileTokenInfo[] | number | undefined;
}
export declare const buildTokenCountTree: (filesWithTokens: FileWithTokens[]) => TreeNode;