/** * Jupyter Notebook (.ipynb) parser. * Extracts code cells, markdown cells, outputs, and dependencies. */ export interface NotebookCell { cellType: 'code' | 'markdown' | 'raw'; source: string; index: number; executionCount?: number; outputs?: string[]; hasError?: boolean; } export interface NotebookInfo { file: string; kernelLanguage: string; kernelDisplayName: string; totalCells: number; codeCells: number; markdownCells: number; cells: NotebookCell[]; imports: string[]; functions: string[]; executedInOrder: boolean; hasUnexecutedCells: boolean; } /** * Parse a Jupyter notebook file. * @param filePath - Path to the .ipynb file * @returns Parsed notebook information including cells, imports, and execution state */ export declare function parseNotebook(filePath: string): Promise; /** * Find all notebooks in a directory. * @param cwd - The working directory to search * @returns Array of notebook file paths */ export declare function findNotebooks(cwd: string): Promise; /** * Extract just the code from a notebook (for analysis). * @param notebook - Parsed notebook information * @returns Concatenated code from all code cells */ export declare function extractCode(notebook: NotebookInfo): string; /** * Get notebook health summary. * @param notebook - Parsed notebook information * @returns Health issues and overall score */ export declare function notebookHealth(notebook: NotebookInfo): { issues: string[]; score: number; }; //# sourceMappingURL=notebook.d.ts.map