import { RawResponse } from '../models/entity'; import { Executor, ReplEval } from './types'; import { ExecType, KResponse } from '../models/command'; import REPL from '../models/repl'; import { ExecOptions, ExecOptionsWithUUID } from '../models/execOptions'; import { CodedError } from '../models/errors'; import { Tab } from '../webapp/tab'; import { Block } from '../webapp/models/block'; export declare const setEvaluatorImpl: (impl: ReplEval) => void; export declare const exec: (commandUntrimmed: string, execOptions?: ExecOptions) => Promise | CodedError>; /** * User hit enter in the REPL * * @param execUUID for command re-execution * */ export declare const doEval: (_tab: Tab, block: Block, command: string, execUUID?: string, type?: ExecType) => Promise | CodedError>; /** * If, while evaluating a command, it needs to evaluate a sub-command... * */ export declare const qexec: >(command: string, block?: HTMLElement | boolean, contextChangeOK?: boolean, execOptions?: ExecOptions, nextBlock?: HTMLElement) => Promise; export declare const qfexec: (command: string, block?: HTMLElement, nextBlock?: HTMLElement, execOptions?: ExecOptions) => Promise; /** * "raw" exec, where we want the data model back directly * */ export declare const rexec: (command: string, execOptions?: ExecOptions) => Promise>; /** * Evaluate a command and place the result in the current active view for the given tab * */ export declare const reexec: >(command: string, execOptions: ExecOptionsWithUUID) => Promise; /** * Programmatic exec, as opposed to human typing and hitting enter * */ export declare const pexec: >(command: string, execOptions?: ExecOptions) => Promise; /** * Execute a command in response to an in-view click * */ export declare function click(command: string | (() => Promise), evt: MouseEvent): Promise; /** * Update the executor impl * */ export declare const setExecutorImpl: (impl: Executor) => void; /** * @return an instance that obeys the REPL interface * */ export declare function getImpl(tab: Tab): REPL;