Combustion air is maybe your bigger concern, but the installation manual will show minimum clearances and how big an opening must be for combustion to work properly. Some allow things to be quite close, but using the minimum can still mean it's a bear to get access to all points when, not if, it ever needs servicing.