#pragma once

#include "cut/polygonal_adapters.h"

#include <yandex/maps/wiki/geom_tools/common.h>

#include <boost/optional.hpp>

namespace maps {
namespace wiki {
namespace geom_tools {

boost::optional<GeolibPolygonVector>
tryBuildPolygons(
    const RingVector& exteriorRings,
    const RingVector& interiorRings,
    ValidateResult validateResult);

GeolibPolygonVector
buildPolygons(
    const RingVector& exteriorRings,
    const RingVector& interiorRings,
    ValidateResult validateResult);

} // namespace geom_tools
} // namespace wiki
} // namespace maps
