// Copyright (C) 2026 half144 and PS5 React contributors // SPDX-License-Identifier: GPL-3.0-or-later // Additional attribution term: see LICENSE-ATTRIBUTION. #pragma once #include #include #include namespace browser_capture { struct Snapshot { std::uint32_t id = 0; std::string state = "queued", error, url; }; std::uint32_t capture(std::string prefix, std::string suffix, int timeout, std::string& error); void cancel(std::uint32_t id); std::vector poll(); void stop(); }