import React from "react"; import { ImmutableCell } from "@nteract/commutable"; import { ContentRef } from "@nteract/core"; import { EditorSlots } from "../inputs/editor"; interface NamedCodeCellSlots { editor?: EditorSlots; prompt?: (props: { id: string; contentRef: string; }) => JSX.Element; pagers?: (props: { id: string; contentRef: string; }) => JSX.Element; inputPrompts?: (props: { id: string; contentRef: string; }) => JSX.Element; outputs?: (props: { id: string; contentRef: string; }) => JSX.Element; toolbar?: () => JSX.Element; } interface ComponentProps { id: string; contentRef: ContentRef; cell?: ImmutableCell; cell_type?: "code"; children?: NamedCodeCellSlots; } export default class CodeCell extends React.Component { static defaultProps: { cell_type: string; }; render(): JSX.Element; } export {};