Member predicate Variable::isTopLevelWithAmbientDeclaration
Holds if this variable is declared in the top-level of a module using a declare
statement.
For example:
declare var $: any;
Such variables are generally treated as a global variables, except for type-checking related purposes.
predicate isTopLevelWithAmbientDeclaration()