import { Notebook } from "./notebooks"; export declare module NotebookTransformers { /** * Returns true if a notebook has a module, that has a variable with name == cellName * @param notebook * @param cellName */ function hasCell(notebook: Notebook, cellName: string): boolean; /** * Replaces a named variable in the notebook with a new value. * * Pass true for appendIfNotFound to append the variable if it isn't already in the notebook - this is useful to override * libraries built into the @observable/runtime * * Returns undefined if the variable isn't found and appendIfNotFound == false * * @param notebook * @param variableName * @param newValue * @param inputs * @param appendIfNotFound */ function setNotebookVariable(notebook: Notebook, variableName: string, newValue: ((...args: any[]) => any), inputs?: string[] | undefined, appendIfNotFound?: boolean): Notebook | undefined; }