pub fn type_define_event( actor: AgentId, created_at: i64, nonce: u64, room_id: impl Into<String>, base_seq: u64, base_hash: impl Into<String>, declaration: TypeDeclaration, ) -> Event<TypeDeclaration>