import { ReactElement } from 'react'; import { RunnerOptions } from './types'; export declare type UseRunnerProps = RunnerOptions & { /** whether to cache previous element when error occurs with current code */ disableCache?: boolean; }; export declare type UseRunnerReturn = { element: ReactElement | null; error: string | null; }; export declare const useRunner: ({ code, scope, disableCache, }: UseRunnerProps) => UseRunnerReturn;