#pragma once

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

namespace Web::Bindings {

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

private:
};

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

private:
    JS_DECLARE_NATIVE_FUNCTION(read_as_array_buffer);
    JS_DECLARE_NATIVE_FUNCTION(read_as_text);
    JS_DECLARE_NATIVE_FUNCTION(read_as_binary_string);
    JS_DECLARE_NATIVE_FUNCTION(read_as_data_url);
};

} // namespace Web::Bindings
