#pragma once

#include "app_core/document_session.h"
#include "foundation/result.h"

#include <string>
#include <string_view>

class App;

namespace pp::panopainter {

[[nodiscard]] pp::foundation::Status execute_legacy_document_open(
    App& app,
    std::string path);

[[nodiscard]] pp::foundation::Status execute_legacy_document_open_plan(
    App& app,
    pp::app::DocumentOpenPlanAction action,
    const pp::app::DocumentOpenRoute& route);

void execute_legacy_downloaded_project_open(
    App& app,
    std::string_view path,
    std::string_view name);

} // namespace pp::panopainter
