chore(api): expose declare and resolve functions