Adds an export statement to a top-level class, variable, or function.