import { VariableType } from "./variable" ; import * as ESTree from "estree" ; type Declaration = ESTree . VariableDeclaration | ESTree . ImportDeclaration | ESTree . ExportDefaultDeclaration ; export class Definition { constructor ( public readonly type , public readonly name , public readonly node , public readonly parent ? , public readonly index ? , public readonly kind ? ) { } } export class ParameterDefinition extends Definition { constructor ( name , node , index , public readonly rest ) { super ( VariableType . Parameter , name , node , undefined , index , undefined ) ; } }