Add declaration file, fixup package.json