import { Component, ReactElement } from 'react'; import { RunnerOptions, Scope } from './types'; export declare type RunnerProps = RunnerOptions & { /** callback on code be rendered, returns error message when code is invalid */ onRendered?: (error?: Error) => void; }; declare type RunnerState = { element: ReactElement | null; error: Error | null; prevCode: string | null; prevScope: Scope | undefined; }; export declare class Runner extends Component { state: RunnerState; static getDerivedStateFromProps(props: RunnerProps, state: RunnerState): Partial | null; static getDerivedStateFromError(error: Error): Partial; componentDidMount(): void; shouldComponentUpdate(nextProps: RunnerProps, nextState: RunnerState): boolean; componentDidUpdate(): void; render(): ReactElement> | null; } export {};