#pragma once

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

namespace Web::Bindings {

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

private:
};

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

private:
    JS_DECLARE_NATIVE_FUNCTION(type_getter);
    JS_DECLARE_NATIVE_FUNCTION(target_getter);
    JS_DECLARE_NATIVE_FUNCTION(added_nodes_getter);
    JS_DECLARE_NATIVE_FUNCTION(removed_nodes_getter);
    JS_DECLARE_NATIVE_FUNCTION(previous_sibling_getter);
    JS_DECLARE_NATIVE_FUNCTION(next_sibling_getter);
    JS_DECLARE_NATIVE_FUNCTION(attribute_name_getter);
    JS_DECLARE_NATIVE_FUNCTION(attribute_namespace_getter);
    JS_DECLARE_NATIVE_FUNCTION(old_value_getter);
};

} // namespace Web::Bindings
