import { Dictionary } from "../dictionary" ; export class CompiledPromisesCallback { public callback : any ; public done : number ; constructor ( ) { this . done = 0 ; } } export class PuppetError extends Error { } export class WorkspaceError extends PuppetError { public title : string ; public message : string ; constructor ( title , message ) { super ( message ) ; this . message = message ; this . title = title ; } } export class NoSuchEnvironmentError extends PuppetError { } export class CompilationError extends PuppetError { } export class GlobalVariableResolverResults { static MISSING : number = - 2 ; static EXISTS : number = - 1 ; } export interface GlobalVariableResolver { get ( key ) : any ; has ( key ) : number ; }