def find_declaration(<EOL>declarations,<EOL>decl_type=None,<EOL>name=None,<EOL>parent=None,<EOL>recursive=True,<EOL>fullname=None):
decl = find_all_declarations(<EOL>declarations,<EOL>decl_type=decl_type,<EOL>name=name,<EOL>parent=parent,<EOL>recursive=recursive,<EOL>fullname=fullname)<EOL>if len(decl) == <NUM_LIT:1>:<EOL><INDENT>return decl[<NUM_LIT:0>]<EOL><DEDENT>
Returns single declaration that match criteria, defined by developer.
If more the one declaration was found None will be returned.

For more information about arguments see :class:`match_declaration_t`
class.

:rtype: matched declaration :class:`declaration_t` or None