// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://github.com/shivanigithub/fenced-frame/issues/14
typedef (FenceEvent or DOMString) ReportEventType;
[Exposed=Window, RuntimeEnabled=FencedFrames]
interface Fence {
[RaisesException] void reportEvent(ReportEventType event);
[RaisesException] void setReportEventDataForAutomaticBeacons(FenceEvent event);
[RaisesException] sequence<FencedFrameConfig> getNestedConfigs();
[CallWith=ScriptState, RaisesException, RuntimeEnabled=FencedFramesLocalUnpartitionedDataAccess] Promise<undefined> disableUntrustedNetwork();
[RaisesException, RuntimeEnabled=FencedFramesLocalUnpartitionedDataAccess] void notifyEvent(Event triggering_event);
};