Unit
What a top-level declaration of a module (or its top-level code) uses itself: its own globals and imports.
export interface Unit { globals: string[]; /** `Global.member`s */ members: string[]; /** the module's other top-level declarations */ locals: string[]; /** imported bindings it uses (`*`: the whole module; `""`: only that it's run) */ imports: { spec: string; name: string }[]; opaque: string[]; /** it's a top-level `let`/`var`, or a constant holding an object or array */ state: boolean; /** calls `new Date()` or `Date()` (the clock) */ clock: boolean; }