#pragma once

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

namespace Web::Bindings {

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

private:
};

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

private:
    JS_DECLARE_NATIVE_FUNCTION(children_getter);
    JS_DECLARE_NATIVE_FUNCTION(first_element_child_getter);
    JS_DECLARE_NATIVE_FUNCTION(last_element_child_getter);
    JS_DECLARE_NATIVE_FUNCTION(child_element_count_getter);
    JS_DECLARE_NATIVE_FUNCTION(get_element_by_id);
    JS_DECLARE_NATIVE_FUNCTION(prepend);
    JS_DECLARE_NATIVE_FUNCTION(append);
    JS_DECLARE_NATIVE_FUNCTION(replace_children);
    JS_DECLARE_NATIVE_FUNCTION(move_before);
    JS_DECLARE_NATIVE_FUNCTION(query_selector);
    JS_DECLARE_NATIVE_FUNCTION(query_selector_all);
};

} // namespace Web::Bindings
