pub fn extract_selector(node: &Value) -> Option<(String, &'static str)>
Extract the selector from a declaration node. Returns (selector_hex, selector_kind) where kind is “function”, “error”, or “event”.