codn_ts
Version:
智能代码分析工具 - 支持语义搜索、调用链分析和代码结构可视化,对大模型/AI agent 友好
20 lines (19 loc) • 525 B
TypeScript
export interface ShowOptions {
file: string;
symbol?: string;
startLine?: number;
endLine?: number;
mode?: "full" | "methods" | "init";
contextLines?: number;
}
export interface ShowResult {
file: string;
symbol?: string;
mode?: string;
startLine: number;
endLine: number;
content: string;
totalLines: number;
}
export declare function showFileRange(options: ShowOptions): ShowResult;
export declare function showClassDefinition(options: ShowOptions): Promise<ShowResult>;