#ifndef THIRD_PARTY_UPB_WASM_ABI_UPB_FIND_UNKNOWN_H_
#define THIRD_PARTY_UPB_WASM_ABI_UPB_FIND_UNKNOWN_H_

#include <cstdint>

#include "upb/message/message.h"
#include "upb/message/promote.h"
#include "upb/wire/types.h"

namespace upb::wasm {

// A variant of upb_Message_FindUnknown that also checks on the wire type.
upb_FindUnknownRet upb_Message_FindUnknownWithWireType(const upb_Message* msg,
                                                       uint32_t field_number,
                                                       upb_WireType wire_type,
                                                       int depth_limit);

}  // namespace upb::wasm

#endif  // THIRD_PARTY_UPB_WASM_ABI_UPB_FIND_UNKNOWN_H_
