/** * * This is the top level data structure for in memory data structures, * and allows converting from on-disk v4 and v3 Jupyter Notebooks * */ import * as v3 from "./v3"; import * as v4 from "./v4"; import { ImmutableNotebook } from "./structures"; export declare type Notebook = v4.NotebookV4 | v3.NotebookV3; /** * Converts a string representation of a notebook into a JSON representation. * * @param notebookString A string representation of a notebook. * * @returns A JSON representation of the same notebook. */ export declare function parseNotebook(notebookString: string): Notebook; export declare function fromJS(notebook: Notebook | ImmutableNotebook): any; /** * Converts an immutable representation of a notebook * to a JSON representation of the notebook using the * v4 of the nbformat specification. * * @param immnb The immutable representation of a notebook. * * @returns The JSON representation of a notebook. */ export declare function toJS(immnb: ImmutableNotebook): v4.NotebookV4; /** * Converts a JSON representation of a notebook into a string representation. * * @param notebook The JSON representation of a notebook. * * @returns A string containing the notebook data. */ export declare function stringifyNotebook(notebook: Notebook): string;