#pragma once

#include <LibJS/Forward.h>
#include <LibJS/Runtime/NativeFunction.h>
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/Value.h>
#include <LibWeb/Bindings/InterfaceObject.h>

namespace Web::Bindings {

struct SVGGraphicsElementConstructor {
public:
    static void initialize(JS::Realm&, JS::NativeFunction&);
    static JS::ThrowCompletionOr<GC::Ref<JS::Object>> construct(InterfaceConstructor&, JS::FunctionObject&);

private:
};

struct SVGGraphicsElementPrototype {
public:
    static void initialize(JS::Realm&, JS::Object&);
    static void define_unforgeable_attributes(JS::Realm&, JS::Object&);

private:
    JS_DECLARE_NATIVE_FUNCTION(transform_getter);
    JS_DECLARE_NATIVE_FUNCTION(get_b_box);
    JS_DECLARE_NATIVE_FUNCTION(get_ctm);
    JS_DECLARE_NATIVE_FUNCTION(get_screen_ctm);
};

struct SVGBoundingBoxOptions {
    bool clipped { false };
    bool fill { true };
    bool markers { false };
    bool stroke { false };
};

JS::ThrowCompletionOr<SVGBoundingBoxOptions> convert_to_idl_value_for_svg_bounding_box_options(JS::VM&, JS::Value);

} // namespace Web::Bindings
