#pragma once

#include "foundation/result.h"

#include <cstddef>
#include <string_view>

namespace pp::ui {

struct LayoutParseSummary {
    std::size_t node_count = 0;
    std::size_t length_attribute_count = 0;
};

[[nodiscard]] pp::foundation::Result<LayoutParseSummary> parse_layout_xml(std::string_view xml);

}
