/// <reference types="node" />
import { Node } from '@stencila/schema';
import repl from 'repl';
import stream from 'stream';
import vm from 'vm';
export declare class Session {
    repl: repl.REPLServer;
    context: vm.Context;
    input: stream.PassThrough;
    outputs: Node[];
    errors: Error[];
    constructor();
    write(result: Node | undefined): string;
    enter(code: string): [Node[], Error[]];
}
/**
 * Get the session for the current document
 */
export declare function session(): Session;
