import { Tab } from './tab'; import { Stream } from '../models/streamable'; import { CommandHandlerWithEvents } from '../models/command'; import { ExecOptions, ParsedOptions } from '../models/execOptions'; import { Entity } from '../models/entity'; export declare type ViewHandler = (tab: Tab, response: Entity, resultDom: Element, parsedOptions: ParsedOptions, execOptions: ExecOptions) => Promise | void; export declare const registerListView: (kind: string, handler: ViewHandler) => void; export declare const registerEntityView: (kind: string, handler: ViewHandler) => void; export declare const streamTo: (tab: Tab, block: Element) => Stream; export declare const ok: (parentNode: Element, suffix?: string | Element, css?: string) => HTMLDivElement; export declare function renderResult(response: Entity, tab: Tab, execOptions: ExecOptions, parsedOptions: ParsedOptions, resultDom: HTMLElement, echo?: boolean, attach?: boolean): Promise; export declare function replResult(): HTMLDivElement; export declare const printResults: (block: HTMLElement, nextBlock: HTMLElement, tab: Tab, resultDom: HTMLElement, echo?: boolean, execOptions?: ExecOptions, parsedOptions?: ParsedOptions, command?: string, evaluator?: CommandHandlerWithEvents) => (response: Entity) => Promise;