TypeScript didn't find native module


Getting started with TypeScript looking at it’s API for creating a simple button, my goal is to programmatically create a button element with import buttonModule = require("ui/button"); within a .ts file.

How do you declare the button module or is my build faulty? I’m not expecting errors using the core API, and any help is appreciated.