/// import replServer from 'repl'; import { Processor, State } from '../core/processors'; import { World } from '../core/world'; export interface ReplProcessor { name: string; description: string; processor: Processor; } export interface IReplExtension { name(): string; createProcessor(): ReplProcessor | null; registerCommands(repl: IRepl): void; } export interface IReplExtensionFactory { create(world: World, dataPath: string): IReplExtension; } export interface IRepl { getReplServer(): replServer.REPLServer; getState(): State; }