import { BareProps } from '@polkadot/ui-app/types';
import React from 'react';
declare type Props = BareProps & {
code: string;
isValid?: boolean;
onEdit: (code: string) => void;
};
/**
* @name Editor
* @summary A code editor based on the codeflask npm module
* @description It allows to live-edit code examples and JSON files.
*
* @example
*
*
* ```javascript
* import {Editor} from '@polkadot/ui-app';
*
* callbackFunction}
* />
* ```
*/
declare class Editor extends React.Component {
private id;
private editor;
componentDidMount(): void;
shouldComponentUpdate(nextProps: Props): boolean;
componentDidUpdate(): void;
render(): JSX.Element;
}
declare const _default: import("styled-components").StyledComponent;
export default _default;