// chrome/common/compose/compose.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
import { ComposeStatusSpec as compose_mojom_ComposeStatusSpec } from './compose_enums.mojom-webui.js';
export const InputModeSpec = { $: mojo.internal.Enum() };
export var InputMode;
(function (InputMode) {
    InputMode[InputMode["MIN_VALUE"] = 0] = "MIN_VALUE";
    InputMode[InputMode["MAX_VALUE"] = 3] = "MAX_VALUE";
    InputMode[InputMode["kUnset"] = 0] = "kUnset";
    InputMode[InputMode["kPolish"] = 1] = "kPolish";
    InputMode[InputMode["kElaborate"] = 2] = "kElaborate";
    InputMode[InputMode["kFormalize"] = 3] = "kFormalize";
})(InputMode || (InputMode = {}));
export const StyleModifierSpec = { $: mojo.internal.Enum() };
export var StyleModifier;
(function (StyleModifier) {
    StyleModifier[StyleModifier["MIN_VALUE"] = 0] = "MIN_VALUE";
    StyleModifier[StyleModifier["MAX_VALUE"] = 5] = "MAX_VALUE";
    StyleModifier[StyleModifier["kUnset"] = 0] = "kUnset";
    StyleModifier[StyleModifier["kFormal"] = 1] = "kFormal";
    StyleModifier[StyleModifier["kCasual"] = 2] = "kCasual";
    StyleModifier[StyleModifier["kLonger"] = 3] = "kLonger";
    StyleModifier[StyleModifier["kShorter"] = 4] = "kShorter";
    StyleModifier[StyleModifier["kRetry"] = 5] = "kRetry";
})(StyleModifier || (StyleModifier = {}));
export const CloseReasonSpec = { $: mojo.internal.Enum() };
export var CloseReason;
(function (CloseReason) {
    CloseReason[CloseReason["MIN_VALUE"] = 0] = "MIN_VALUE";
    CloseReason[CloseReason["MAX_VALUE"] = 3] = "MAX_VALUE";
    CloseReason[CloseReason["kFirstRunCloseButton"] = 0] = "kFirstRunCloseButton";
    CloseReason[CloseReason["kCloseButton"] = 1] = "kCloseButton";
    CloseReason[CloseReason["kInsertButton"] = 2] = "kInsertButton";
    CloseReason[CloseReason["kMSBBCloseButton"] = 3] = "kMSBBCloseButton";
})(CloseReason || (CloseReason = {}));
export const UserFeedbackSpec = { $: mojo.internal.Enum() };
export var UserFeedback;
(function (UserFeedback) {
    UserFeedback[UserFeedback["MIN_VALUE"] = 0] = "MIN_VALUE";
    UserFeedback[UserFeedback["MAX_VALUE"] = 2] = "MAX_VALUE";
    UserFeedback[UserFeedback["kUserFeedbackUnspecified"] = 0] = "kUserFeedbackUnspecified";
    UserFeedback[UserFeedback["kUserFeedbackNegative"] = 1] = "kUserFeedbackNegative";
    UserFeedback[UserFeedback["kUserFeedbackPositive"] = 2] = "kUserFeedbackPositive";
})(UserFeedback || (UserFeedback = {}));
export class ComposeSessionUntrustedPageHandlerFactoryPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'compose.mojom.ComposeSessionUntrustedPageHandlerFactory', scope);
    }
}
export class ComposeSessionUntrustedPageHandlerFactoryRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(ComposeSessionUntrustedPageHandlerFactoryPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    createComposeSessionUntrustedPageHandler(clientHandler, handler, dialog) {
        this.proxy.sendMessage(1105358823, ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_ParamsSpec.$, null, [
            clientHandler,
            handler,
            dialog
        ], false);
    }
}
;
/**
 * An object which receives request messages for the ComposeSessionUntrustedPageHandlerFactory
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class ComposeSessionUntrustedPageHandlerFactoryReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeSessionUntrustedPageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1105358823, ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_ParamsSpec.$, null, impl.createComposeSessionUntrustedPageHandler.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class ComposeSessionUntrustedPageHandlerFactory {
    static get $interfaceName() {
        return "compose.mojom.ComposeSessionUntrustedPageHandlerFactory";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new ComposeSessionUntrustedPageHandlerFactoryRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the ComposeSessionUntrustedPageHandlerFactory
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class ComposeSessionUntrustedPageHandlerFactoryCallbackRouter {
    helper_internal_;
    $;
    router_;
    createComposeSessionUntrustedPageHandler;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeSessionUntrustedPageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.createComposeSessionUntrustedPageHandler =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1105358823, ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_ParamsSpec.$, null, this.createComposeSessionUntrustedPageHandler.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export class ComposeSessionUntrustedPageHandlerPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'compose.mojom.ComposeSessionUntrustedPageHandler', scope);
    }
}
export class ComposeSessionUntrustedPageHandlerRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(ComposeSessionUntrustedPageHandlerPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    logCancelEdit() {
        this.proxy.sendMessage(33219178, ComposeSessionUntrustedPageHandler_LogCancelEdit_ParamsSpec.$, null, [], false);
    }
    compose(input, mode, edited) {
        this.proxy.sendMessage(2076604187, ComposeSessionUntrustedPageHandler_Compose_ParamsSpec.$, null, [
            input,
            mode,
            edited
        ], false);
    }
    rewrite(style) {
        this.proxy.sendMessage(182796886, ComposeSessionUntrustedPageHandler_Rewrite_ParamsSpec.$, null, [
            style
        ], false);
    }
    logEditInput() {
        this.proxy.sendMessage(200864745, ComposeSessionUntrustedPageHandler_LogEditInput_ParamsSpec.$, null, [], false);
    }
    saveWebUIState(webuiState) {
        this.proxy.sendMessage(2114243674, ComposeSessionUntrustedPageHandler_SaveWebUIState_ParamsSpec.$, null, [
            webuiState
        ], false);
    }
    acceptComposeResult() {
        return this.proxy.sendMessage(1366405784, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParamsSpec.$, [], false);
    }
    requestInitialState() {
        return this.proxy.sendMessage(458245193, ComposeSessionUntrustedPageHandler_RequestInitialState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParamsSpec.$, [], false);
    }
    undo() {
        return this.proxy.sendMessage(220587029, ComposeSessionUntrustedPageHandler_Undo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Undo_ResponseParamsSpec.$, [], false);
    }
    recoverFromErrorState() {
        return this.proxy.sendMessage(463474653, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParamsSpec.$, [], false);
    }
    redo() {
        return this.proxy.sendMessage(2010718717, ComposeSessionUntrustedPageHandler_Redo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Redo_ResponseParamsSpec.$, [], false);
    }
    openBugReportingLink() {
        this.proxy.sendMessage(1836744047, ComposeSessionUntrustedPageHandler_OpenBugReportingLink_ParamsSpec.$, null, [], false);
    }
    openComposeLearnMorePage() {
        this.proxy.sendMessage(1811623313, ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_ParamsSpec.$, null, [], false);
    }
    openEnterpriseComposeLearnMorePage() {
        this.proxy.sendMessage(1341936763, ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_ParamsSpec.$, null, [], false);
    }
    openFeedbackSurveyLink() {
        this.proxy.sendMessage(1211359746, ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_ParamsSpec.$, null, [], false);
    }
    openSignInPage() {
        this.proxy.sendMessage(868605899, ComposeSessionUntrustedPageHandler_OpenSignInPage_ParamsSpec.$, null, [], false);
    }
    setUserFeedback(feedback) {
        this.proxy.sendMessage(357416370, ComposeSessionUntrustedPageHandler_SetUserFeedback_ParamsSpec.$, null, [
            feedback
        ], false);
    }
    editResult(newResult) {
        return this.proxy.sendMessage(2016217403, ComposeSessionUntrustedPageHandler_EditResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_EditResult_ResponseParamsSpec.$, [
            newResult
        ], false);
    }
}
;
/**
 * An object which receives request messages for the ComposeSessionUntrustedPageHandler
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class ComposeSessionUntrustedPageHandlerReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeSessionUntrustedPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(33219178, ComposeSessionUntrustedPageHandler_LogCancelEdit_ParamsSpec.$, null, impl.logCancelEdit.bind(impl), false);
        this.helper_internal_.registerHandler(2076604187, ComposeSessionUntrustedPageHandler_Compose_ParamsSpec.$, null, impl.compose.bind(impl), false);
        this.helper_internal_.registerHandler(182796886, ComposeSessionUntrustedPageHandler_Rewrite_ParamsSpec.$, null, impl.rewrite.bind(impl), false);
        this.helper_internal_.registerHandler(200864745, ComposeSessionUntrustedPageHandler_LogEditInput_ParamsSpec.$, null, impl.logEditInput.bind(impl), false);
        this.helper_internal_.registerHandler(2114243674, ComposeSessionUntrustedPageHandler_SaveWebUIState_ParamsSpec.$, null, impl.saveWebUIState.bind(impl), false);
        this.helper_internal_.registerHandler(1366405784, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParamsSpec.$, impl.acceptComposeResult.bind(impl), false);
        this.helper_internal_.registerHandler(458245193, ComposeSessionUntrustedPageHandler_RequestInitialState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParamsSpec.$, impl.requestInitialState.bind(impl), false);
        this.helper_internal_.registerHandler(220587029, ComposeSessionUntrustedPageHandler_Undo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Undo_ResponseParamsSpec.$, impl.undo.bind(impl), false);
        this.helper_internal_.registerHandler(463474653, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParamsSpec.$, impl.recoverFromErrorState.bind(impl), false);
        this.helper_internal_.registerHandler(2010718717, ComposeSessionUntrustedPageHandler_Redo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Redo_ResponseParamsSpec.$, impl.redo.bind(impl), false);
        this.helper_internal_.registerHandler(1836744047, ComposeSessionUntrustedPageHandler_OpenBugReportingLink_ParamsSpec.$, null, impl.openBugReportingLink.bind(impl), false);
        this.helper_internal_.registerHandler(1811623313, ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_ParamsSpec.$, null, impl.openComposeLearnMorePage.bind(impl), false);
        this.helper_internal_.registerHandler(1341936763, ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_ParamsSpec.$, null, impl.openEnterpriseComposeLearnMorePage.bind(impl), false);
        this.helper_internal_.registerHandler(1211359746, ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_ParamsSpec.$, null, impl.openFeedbackSurveyLink.bind(impl), false);
        this.helper_internal_.registerHandler(868605899, ComposeSessionUntrustedPageHandler_OpenSignInPage_ParamsSpec.$, null, impl.openSignInPage.bind(impl), false);
        this.helper_internal_.registerHandler(357416370, ComposeSessionUntrustedPageHandler_SetUserFeedback_ParamsSpec.$, null, impl.setUserFeedback.bind(impl), false);
        this.helper_internal_.registerHandler(2016217403, ComposeSessionUntrustedPageHandler_EditResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_EditResult_ResponseParamsSpec.$, impl.editResult.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class ComposeSessionUntrustedPageHandler {
    static get $interfaceName() {
        return "compose.mojom.ComposeSessionUntrustedPageHandler";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new ComposeSessionUntrustedPageHandlerRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the ComposeSessionUntrustedPageHandler
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class ComposeSessionUntrustedPageHandlerCallbackRouter {
    helper_internal_;
    $;
    router_;
    logCancelEdit;
    compose;
    rewrite;
    logEditInput;
    saveWebUIState;
    acceptComposeResult;
    requestInitialState;
    undo;
    recoverFromErrorState;
    redo;
    openBugReportingLink;
    openComposeLearnMorePage;
    openEnterpriseComposeLearnMorePage;
    openFeedbackSurveyLink;
    openSignInPage;
    setUserFeedback;
    editResult;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeSessionUntrustedPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.logCancelEdit =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(33219178, ComposeSessionUntrustedPageHandler_LogCancelEdit_ParamsSpec.$, null, this.logCancelEdit.createReceiverHandler(false /* expectsResponse */), false);
        this.compose =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2076604187, ComposeSessionUntrustedPageHandler_Compose_ParamsSpec.$, null, this.compose.createReceiverHandler(false /* expectsResponse */), false);
        this.rewrite =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(182796886, ComposeSessionUntrustedPageHandler_Rewrite_ParamsSpec.$, null, this.rewrite.createReceiverHandler(false /* expectsResponse */), false);
        this.logEditInput =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(200864745, ComposeSessionUntrustedPageHandler_LogEditInput_ParamsSpec.$, null, this.logEditInput.createReceiverHandler(false /* expectsResponse */), false);
        this.saveWebUIState =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2114243674, ComposeSessionUntrustedPageHandler_SaveWebUIState_ParamsSpec.$, null, this.saveWebUIState.createReceiverHandler(false /* expectsResponse */), false);
        this.acceptComposeResult =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1366405784, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParamsSpec.$, this.acceptComposeResult.createReceiverHandler(true /* expectsResponse */), false);
        this.requestInitialState =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(458245193, ComposeSessionUntrustedPageHandler_RequestInitialState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParamsSpec.$, this.requestInitialState.createReceiverHandler(true /* expectsResponse */), false);
        this.undo =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(220587029, ComposeSessionUntrustedPageHandler_Undo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Undo_ResponseParamsSpec.$, this.undo.createReceiverHandler(true /* expectsResponse */), false);
        this.recoverFromErrorState =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(463474653, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ParamsSpec.$, ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParamsSpec.$, this.recoverFromErrorState.createReceiverHandler(true /* expectsResponse */), false);
        this.redo =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2010718717, ComposeSessionUntrustedPageHandler_Redo_ParamsSpec.$, ComposeSessionUntrustedPageHandler_Redo_ResponseParamsSpec.$, this.redo.createReceiverHandler(true /* expectsResponse */), false);
        this.openBugReportingLink =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1836744047, ComposeSessionUntrustedPageHandler_OpenBugReportingLink_ParamsSpec.$, null, this.openBugReportingLink.createReceiverHandler(false /* expectsResponse */), false);
        this.openComposeLearnMorePage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1811623313, ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_ParamsSpec.$, null, this.openComposeLearnMorePage.createReceiverHandler(false /* expectsResponse */), false);
        this.openEnterpriseComposeLearnMorePage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1341936763, ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_ParamsSpec.$, null, this.openEnterpriseComposeLearnMorePage.createReceiverHandler(false /* expectsResponse */), false);
        this.openFeedbackSurveyLink =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1211359746, ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_ParamsSpec.$, null, this.openFeedbackSurveyLink.createReceiverHandler(false /* expectsResponse */), false);
        this.openSignInPage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(868605899, ComposeSessionUntrustedPageHandler_OpenSignInPage_ParamsSpec.$, null, this.openSignInPage.createReceiverHandler(false /* expectsResponse */), false);
        this.setUserFeedback =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(357416370, ComposeSessionUntrustedPageHandler_SetUserFeedback_ParamsSpec.$, null, this.setUserFeedback.createReceiverHandler(false /* expectsResponse */), false);
        this.editResult =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2016217403, ComposeSessionUntrustedPageHandler_EditResult_ParamsSpec.$, ComposeSessionUntrustedPageHandler_EditResult_ResponseParamsSpec.$, this.editResult.createReceiverHandler(true /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export class ComposeClientUntrustedPageHandlerPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'compose.mojom.ComposeClientUntrustedPageHandler', scope);
    }
}
export class ComposeClientUntrustedPageHandlerRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(ComposeClientUntrustedPageHandlerPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    showUI() {
        this.proxy.sendMessage(1210316445, ComposeClientUntrustedPageHandler_ShowUI_ParamsSpec.$, null, [], false);
    }
    closeUI(reason) {
        this.proxy.sendMessage(1376920605, ComposeClientUntrustedPageHandler_CloseUI_ParamsSpec.$, null, [
            reason
        ], false);
    }
    completeFirstRun() {
        this.proxy.sendMessage(1226951914, ComposeClientUntrustedPageHandler_CompleteFirstRun_ParamsSpec.$, null, [], false);
    }
    openComposeSettings() {
        this.proxy.sendMessage(918577528, ComposeClientUntrustedPageHandler_OpenComposeSettings_ParamsSpec.$, null, [], false);
    }
}
;
/**
 * An object which receives request messages for the ComposeClientUntrustedPageHandler
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class ComposeClientUntrustedPageHandlerReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeClientUntrustedPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1210316445, ComposeClientUntrustedPageHandler_ShowUI_ParamsSpec.$, null, impl.showUI.bind(impl), false);
        this.helper_internal_.registerHandler(1376920605, ComposeClientUntrustedPageHandler_CloseUI_ParamsSpec.$, null, impl.closeUI.bind(impl), false);
        this.helper_internal_.registerHandler(1226951914, ComposeClientUntrustedPageHandler_CompleteFirstRun_ParamsSpec.$, null, impl.completeFirstRun.bind(impl), false);
        this.helper_internal_.registerHandler(918577528, ComposeClientUntrustedPageHandler_OpenComposeSettings_ParamsSpec.$, null, impl.openComposeSettings.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class ComposeClientUntrustedPageHandler {
    static get $interfaceName() {
        return "compose.mojom.ComposeClientUntrustedPageHandler";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new ComposeClientUntrustedPageHandlerRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the ComposeClientUntrustedPageHandler
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class ComposeClientUntrustedPageHandlerCallbackRouter {
    helper_internal_;
    $;
    router_;
    showUI;
    closeUI;
    completeFirstRun;
    openComposeSettings;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeClientUntrustedPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.showUI =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1210316445, ComposeClientUntrustedPageHandler_ShowUI_ParamsSpec.$, null, this.showUI.createReceiverHandler(false /* expectsResponse */), false);
        this.closeUI =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1376920605, ComposeClientUntrustedPageHandler_CloseUI_ParamsSpec.$, null, this.closeUI.createReceiverHandler(false /* expectsResponse */), false);
        this.completeFirstRun =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1226951914, ComposeClientUntrustedPageHandler_CompleteFirstRun_ParamsSpec.$, null, this.completeFirstRun.createReceiverHandler(false /* expectsResponse */), false);
        this.openComposeSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(918577528, ComposeClientUntrustedPageHandler_OpenComposeSettings_ParamsSpec.$, null, this.openComposeSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export class ComposeUntrustedDialogPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'compose.mojom.ComposeUntrustedDialog', scope);
    }
}
export class ComposeUntrustedDialogRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(ComposeUntrustedDialogPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    responseReceived(response) {
        this.proxy.sendMessage(276877932, ComposeUntrustedDialog_ResponseReceived_ParamsSpec.$, null, [
            response
        ], false);
    }
    partialResponseReceived(partialResponse) {
        this.proxy.sendMessage(1239841364, ComposeUntrustedDialog_PartialResponseReceived_ParamsSpec.$, null, [
            partialResponse
        ], false);
    }
}
;
/**
 * An object which receives request messages for the ComposeUntrustedDialog
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class ComposeUntrustedDialogReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeUntrustedDialogRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(276877932, ComposeUntrustedDialog_ResponseReceived_ParamsSpec.$, null, impl.responseReceived.bind(impl), false);
        this.helper_internal_.registerHandler(1239841364, ComposeUntrustedDialog_PartialResponseReceived_ParamsSpec.$, null, impl.partialResponseReceived.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class ComposeUntrustedDialog {
    static get $interfaceName() {
        return "compose.mojom.ComposeUntrustedDialog";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new ComposeUntrustedDialogRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the ComposeUntrustedDialog
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class ComposeUntrustedDialogCallbackRouter {
    helper_internal_;
    $;
    router_;
    responseReceived;
    partialResponseReceived;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(ComposeUntrustedDialogRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.responseReceived =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(276877932, ComposeUntrustedDialog_ResponseReceived_ParamsSpec.$, null, this.responseReceived.createReceiverHandler(false /* expectsResponse */), false);
        this.partialResponseReceived =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1239841364, ComposeUntrustedDialog_PartialResponseReceived_ParamsSpec.$, null, this.partialResponseReceived.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export const ComposeResponseSpec = { $: {} };
export const PartialComposeResponseSpec = { $: {} };
export const ComposeStateSpec = { $: {} };
export const ConfigurableParamsSpec = { $: {} };
export const OpenMetadataSpec = { $: {} };
export const ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_LogCancelEdit_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Compose_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Rewrite_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_LogEditInput_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_SaveWebUIState_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_AcceptComposeResult_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_RequestInitialState_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Undo_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Undo_ResponseParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Redo_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_Redo_ResponseParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_OpenBugReportingLink_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_OpenSignInPage_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_SetUserFeedback_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_EditResult_ParamsSpec = { $: {} };
export const ComposeSessionUntrustedPageHandler_EditResult_ResponseParamsSpec = { $: {} };
export const ComposeClientUntrustedPageHandler_ShowUI_ParamsSpec = { $: {} };
export const ComposeClientUntrustedPageHandler_CloseUI_ParamsSpec = { $: {} };
export const ComposeClientUntrustedPageHandler_CompleteFirstRun_ParamsSpec = { $: {} };
export const ComposeClientUntrustedPageHandler_OpenComposeSettings_ParamsSpec = { $: {} };
export const ComposeUntrustedDialog_ResponseReceived_ParamsSpec = { $: {} };
export const ComposeUntrustedDialog_PartialResponseReceived_ParamsSpec = { $: {} };
mojo.internal.Struct(ComposeResponseSpec.$, 'ComposeResponse', [
    mojo.internal.StructField('status', 0, 0, compose_mojom_ComposeStatusSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('result', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('undoAvailable', 4, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('redoAvailable', 4, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('providedByUser', 4, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('onDeviceEvaluationUsed', 4, 3, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('triggeredFromModifier', 4, 4, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(PartialComposeResponseSpec.$, 'PartialComposeResponse', [
    mojo.internal.StructField('result', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeStateSpec.$, 'ComposeState', [
    mojo.internal.StructField('webuiState', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('response', 8, 0, ComposeResponseSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('hasPendingRequest', 16, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('feedback', 20, 0, UserFeedbackSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(ConfigurableParamsSpec.$, 'ConfigurableParams', [
    mojo.internal.StructField('minWordLimit', 0, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('maxWordLimit', 4, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('maxCharacterLimit', 8, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(OpenMetadataSpec.$, 'OpenMetadata', [
    mojo.internal.StructField('freComplete', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('msbbState', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('initialInput', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('textSelected', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('composeState', 16, 0, ComposeStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('configurableParams', 24, 0, ConfigurableParamsSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_ParamsSpec.$, 'ComposeSessionUntrustedPageHandlerFactory_CreateComposeSessionUntrustedPageHandler_Params', [
    mojo.internal.StructField('clientHandler', 0, 0, mojo.internal.InterfaceRequest(ComposeClientUntrustedPageHandlerPendingReceiver), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('handler', 4, 0, mojo.internal.InterfaceRequest(ComposeSessionUntrustedPageHandlerPendingReceiver), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('dialog', 8, 0, mojo.internal.InterfaceProxy(ComposeUntrustedDialogRemote), null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_LogCancelEdit_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_LogCancelEdit_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Compose_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Compose_Params', [
    mojo.internal.StructField('input', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('mode', 8, 0, InputModeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('edited', 12, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Rewrite_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Rewrite_Params', [
    mojo.internal.StructField('style', 0, 0, StyleModifierSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_LogEditInput_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_LogEditInput_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_SaveWebUIState_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_SaveWebUIState_Params', [
    mojo.internal.StructField('webuiState', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_AcceptComposeResult_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_AcceptComposeResult_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_AcceptComposeResult_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_RequestInitialState_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_RequestInitialState_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_RequestInitialState_ResponseParams', [
    mojo.internal.StructField('initialState', 0, 0, OpenMetadataSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Undo_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Undo_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Undo_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Undo_ResponseParams', [
    mojo.internal.StructField('lastState', 0, 0, ComposeStateSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_RecoverFromErrorState_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_RecoverFromErrorState_ResponseParams', [
    mojo.internal.StructField('stateBeforeError', 0, 0, ComposeStateSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Redo_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Redo_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_Redo_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_Redo_ResponseParams', [
    mojo.internal.StructField('nextState', 0, 0, ComposeStateSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_OpenBugReportingLink_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_OpenBugReportingLink_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_OpenComposeLearnMorePage_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_OpenEnterpriseComposeLearnMorePage_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_OpenFeedbackSurveyLink_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_OpenSignInPage_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_OpenSignInPage_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_SetUserFeedback_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_SetUserFeedback_Params', [
    mojo.internal.StructField('feedback', 0, 0, UserFeedbackSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_EditResult_ParamsSpec.$, 'ComposeSessionUntrustedPageHandler_EditResult_Params', [
    mojo.internal.StructField('newResult', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeSessionUntrustedPageHandler_EditResult_ResponseParamsSpec.$, 'ComposeSessionUntrustedPageHandler_EditResult_ResponseParams', [
    mojo.internal.StructField('isEdited', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeClientUntrustedPageHandler_ShowUI_ParamsSpec.$, 'ComposeClientUntrustedPageHandler_ShowUI_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeClientUntrustedPageHandler_CloseUI_ParamsSpec.$, 'ComposeClientUntrustedPageHandler_CloseUI_Params', [
    mojo.internal.StructField('reason', 0, 0, CloseReasonSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeClientUntrustedPageHandler_CompleteFirstRun_ParamsSpec.$, 'ComposeClientUntrustedPageHandler_CompleteFirstRun_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeClientUntrustedPageHandler_OpenComposeSettings_ParamsSpec.$, 'ComposeClientUntrustedPageHandler_OpenComposeSettings_Params', [], [[0, 8],]);
mojo.internal.Struct(ComposeUntrustedDialog_ResponseReceived_ParamsSpec.$, 'ComposeUntrustedDialog_ResponseReceived_Params', [
    mojo.internal.StructField('response', 0, 0, ComposeResponseSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ComposeUntrustedDialog_PartialResponseReceived_ParamsSpec.$, 'ComposeUntrustedDialog_PartialResponseReceived_Params', [
    mojo.internal.StructField('partialResponse', 0, 0, PartialComposeResponseSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
