import * as vscode from 'vscode' ; import * as child_process from 'child_process' ; import { Diagram } from '../diagram/diagram' ; export interface RenderError { /**
     * error messages from stderr
     */ error : string ; /**
     * Image of error description
     */ out : Buffer ; } export interface RenderTask { /**
     * Processes spawned by the task. You may kill them before cancelling the task.
     */ processes ? : child_process . ChildProcess [ ] ; /**
     * A Promise of Buffer[], represents rendered digram pages or exported file paths
     */ promise : Promise < Buffer [ ] > ; /**
     * Indicates the task is canceled or not
     */ canceled ? : boolean ; } export interface IRender { param diagram param format param savePath returns render ( diagram , format , savePath ) : RenderTask ; getMapData ( diagram , savePath ) : RenderTask ; returns formats ( ) : string [ ] ; returns limitConcurrency ( ) : boolean ; }