Viewport render uses Lambert's diffuse shading, raytraced shadows and raytraced ambient occlusion for ambient light.
All these components can be exported using the Light node, so it is possible to recreate the same look entirely (if to use baked lighting), or partly (for example, it is possible to use only AO map for ambient light and recalcualte shadows and diffuse lighting using the renderer you prefer).