// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Writer API
// https://github.com/explainers-by-googlers/writing-assistance-apis
dictionary AIWriterCreateOptions {
AbortSignal signal;
DOMString sharedContext;
};
[
Exposed=(Window,Worker),
RuntimeEnabled=AIWriterAPI
]
interface AIWriterFactory {
[
Measure,
CallWith=ScriptState,
RaisesException
]
Promise<AIWriter> create(optional AIWriterCreateOptions options = {});
};