This is the "resolved" declaration:
[name] - the local name of the element.
[target namespace] - the namespace name of the element.
[type definition] - the type definition component.
[scope] - Either 'global' or the type definition component in which the element was declared.
From this component, you can directly access the type used to validate the element.
There's more here too!