Emit decls.json instead of text. Exclude non-libpurple declarations.