#pragma once

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

namespace Web::Bindings {

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

private:
};

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

private:
    JS_DECLARE_NATIVE_FUNCTION(root_getter);
    JS_DECLARE_NATIVE_FUNCTION(reference_node_getter);
    JS_DECLARE_NATIVE_FUNCTION(pointer_before_reference_node_getter);
    JS_DECLARE_NATIVE_FUNCTION(what_to_show_getter);
    JS_DECLARE_NATIVE_FUNCTION(filter_getter);
    JS_DECLARE_NATIVE_FUNCTION(next_node);
    JS_DECLARE_NATIVE_FUNCTION(previous_node);
    JS_DECLARE_NATIVE_FUNCTION(detach);
};

} // namespace Web::Bindings
