The $A namespace is the entry point for using the framework in JavaScript code.
For all the methods available in $A, see the JavaScript API at https://<myDomain>.lightning.force.com/auradocs/reference.app, where <myDomain> is the name of your custom Salesforce domain.