import React from "react"; import { Dispatch } from "redux"; import { AppState, ContentRef } from "@nteract/core"; export interface PassedEditorProps { id: string; contentRef: ContentRef; editorType: string; editorFocused: boolean; value: string; channels: any; kernelStatus: string; onChange: (text: string) => void; onFocusChange: (focused: boolean) => void; className: string; } export interface EditorSlots { [key: string]: (props: PassedEditorProps) => React.ReactNode; } interface ComponentProps { id: string; contentRef: ContentRef; children?: EditorSlots; } interface StateProps { editorType: string; editorFocused: boolean; value: string; channels: any; kernelStatus: string; editorComponent?: any; } interface DispatchProps { onChange: (text: string) => void; onFocusChange: (focused: boolean) => void; } declare type Props = ComponentProps & StateProps & DispatchProps; export declare class Editor extends React.PureComponent { render(): React.ReactNode; } export declare const makeMapStateToProps: (initialState: AppState, ownProps: ComponentProps) => (state: AppState) => StateProps; export declare const makeMapDispatchToProps: (initialDispatch: Dispatch, ownProps: ComponentProps) => (dispatch: Dispatch) => { onChange: (text: string) => void; onFocusChange(focused: boolean): void; }; declare const _default: import("react-redux").ConnectedComponent & ComponentProps>; export default _default;