#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICE_WORKER_SERVICE_WORKER_ROUTER_TYPE_CONVERTER_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_SERVICE_WORKER_SERVICE_WORKER_ROUTER_TYPE_CONVERTER_H_
#include <optional>
#include "third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_type.mojom-blink.h"
#include "third_party/blink/public/mojom/service_worker/service_worker_router_rule.mojom-blink.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
namespace blink {
class RouterRule;
MODULES_EXPORT std::optional<ServiceWorkerRouterRule>
ConvertV8RouterRuleToBlink(
v8::Isolate* isolate,
const RouterRule* input,
const KURL& url_pattern_base_url,
mojom::blink::ServiceWorkerFetchHandlerType fetch_handler_type,
ExceptionState& exception_state);
}
#endif