A set of functions for efficiently querying and manipulating a data structure representing a device. The data structure also holds declarations which are used to indicate what needs to be synced from and to the device.