Add type definitions for the lookup functions