Using declare function is made easier by accept a single path and returning a promise to read parameter attributes.