UNPKG

codn_ts

Version:

智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好

28 lines (27 loc) 701 B
export interface CatOptions { showLineNumbers?: boolean; startLine?: number; endLine?: number; highlight?: boolean; encoding?: string; } export interface CatResult { file: string; content: string; totalLines: number; startLine: number; endLine: number; encoding: string; size: number; modified: string; } export declare function catFile(filePath: string, options?: CatOptions): Promise<CatResult>; export declare function getFileInfo(filePath: string): { file: string; exists: boolean; isFile: boolean; size?: number; modified?: string; encoding?: string; }; export declare function detectFileType(filePath: string): string;