// chrome/browser/ui/webui/password_manager/password_manager.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 { MojoBrowserProxyFactory } from '//resources/mojo/mojo_browser_proxy.js';
import { UrlSpec as url_mojom_UrlSpec } from '//resources/mojo/url/mojom/url.mojom-webui.js';
export const ExportProgressStatusSpec = { $: mojo.internal.Enum() };
export var ExportProgressStatus;
(function (ExportProgressStatus) {
    ExportProgressStatus[ExportProgressStatus["MIN_VALUE"] = 0] = "MIN_VALUE";
    ExportProgressStatus[ExportProgressStatus["MAX_VALUE"] = 4] = "MAX_VALUE";
    ExportProgressStatus[ExportProgressStatus["kNotStarted"] = 0] = "kNotStarted";
    ExportProgressStatus[ExportProgressStatus["kInProgress"] = 1] = "kInProgress";
    ExportProgressStatus[ExportProgressStatus["kSucceeded"] = 2] = "kSucceeded";
    ExportProgressStatus[ExportProgressStatus["kFailed"] = 3] = "kFailed";
    ExportProgressStatus[ExportProgressStatus["kFailedWrite"] = 4] = "kFailedWrite";
})(ExportProgressStatus || (ExportProgressStatus = {}));
export const ExportPasswordsResultSpec = { $: mojo.internal.Enum() };
export var ExportPasswordsResult;
(function (ExportPasswordsResult) {
    ExportPasswordsResult[ExportPasswordsResult["MIN_VALUE"] = 0] = "MIN_VALUE";
    ExportPasswordsResult[ExportPasswordsResult["MAX_VALUE"] = 2] = "MAX_VALUE";
    ExportPasswordsResult[ExportPasswordsResult["kSuccess"] = 0] = "kSuccess";
    ExportPasswordsResult[ExportPasswordsResult["kInProgress"] = 1] = "kInProgress";
    ExportPasswordsResult[ExportPasswordsResult["kReauthFailed"] = 2] = "kReauthFailed";
})(ExportPasswordsResult || (ExportPasswordsResult = {}));
export const PasswordManagerActionableErrorSpec = { $: mojo.internal.Enum() };
export var PasswordManagerActionableError;
(function (PasswordManagerActionableError) {
    PasswordManagerActionableError[PasswordManagerActionableError["MIN_VALUE"] = 0] = "MIN_VALUE";
    PasswordManagerActionableError[PasswordManagerActionableError["MAX_VALUE"] = 6] = "MAX_VALUE";
    PasswordManagerActionableError[PasswordManagerActionableError["kNoError"] = 0] = "kNoError";
    PasswordManagerActionableError[PasswordManagerActionableError["kInactionable"] = 1] = "kInactionable";
    PasswordManagerActionableError[PasswordManagerActionableError["kInactionableTemporaryError"] = 2] = "kInactionableTemporaryError";
    PasswordManagerActionableError[PasswordManagerActionableError["kSignInNeeded"] = 3] = "kSignInNeeded";
    PasswordManagerActionableError[PasswordManagerActionableError["kKeychainError"] = 4] = "kKeychainError";
    PasswordManagerActionableError[PasswordManagerActionableError["kTrustedVaultKeyNeeded"] = 5] = "kTrustedVaultKeyNeeded";
    PasswordManagerActionableError[PasswordManagerActionableError["kNeedsPassphrase"] = 6] = "kNeedsPassphrase";
})(PasswordManagerActionableError || (PasswordManagerActionableError = {}));
export class PageHandlerFactoryPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'password_manager.mojom.PageHandlerFactory', scope);
    }
}
export class PageHandlerFactoryRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(PageHandlerFactoryPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    createPageHandler(page, handler) {
        this.proxy.sendMessage(210124807, PageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, [
            page,
            handler
        ], false);
    }
}
;
/**
 * An object which receives request messages for the PageHandlerFactory
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class PageHandlerFactoryReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(210124807, PageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, impl.createPageHandler.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class PageHandlerFactory {
    static get $interfaceName() {
        return "password_manager.mojom.PageHandlerFactory";
    }
    /**
     * 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 PageHandlerFactoryRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the PageHandlerFactory
 * 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 PageHandlerFactoryCallbackRouter {
    helper_internal_;
    $;
    router_;
    createPageHandler;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.createPageHandler =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(210124807, PageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, this.createPageHandler.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 PageHandlerPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'password_manager.mojom.PageHandler', scope);
    }
}
export class PageHandlerRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(PageHandlerPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    extendAuthValidity() {
        this.proxy.sendMessage(1012903042, PageHandler_ExtendAuthValidity_ParamsSpec.$, null, [], false);
    }
    deleteAllPasswordManagerData() {
        return this.proxy.sendMessage(398004220, PageHandler_DeleteAllPasswordManagerData_ParamsSpec.$, PageHandler_DeleteAllPasswordManagerData_ResponseParamsSpec.$, [], false);
    }
    copyPlaintextBackupPassword(id) {
        return this.proxy.sendMessage(179876083, PageHandler_CopyPlaintextBackupPassword_ParamsSpec.$, PageHandler_CopyPlaintextBackupPassword_ResponseParamsSpec.$, [
            id
        ], false);
    }
    removeBackupPassword(id) {
        this.proxy.sendMessage(1470033631, PageHandler_RemoveBackupPassword_ParamsSpec.$, null, [
            id
        ], false);
    }
    removePasswordException(id) {
        this.proxy.sendMessage(1282613696, PageHandler_RemovePasswordException_ParamsSpec.$, null, [
            id
        ], false);
    }
    startBulkPasswordCheck() {
        this.proxy.sendMessage(588254614, PageHandler_StartBulkPasswordCheck_ParamsSpec.$, null, [], false);
    }
    movePasswordsToAccount(ids) {
        this.proxy.sendMessage(1753027201, PageHandler_MovePasswordsToAccount_ParamsSpec.$, null, [
            ids
        ], false);
    }
    resetImporter(deleteFile) {
        return this.proxy.sendMessage(852552900, PageHandler_ResetImporter_ParamsSpec.$, PageHandler_ResetImporter_ResponseParamsSpec.$, [
            deleteFile
        ], false);
    }
    getActorLoginPermissions() {
        return this.proxy.sendMessage(2061466491, PageHandler_GetActorLoginPermissions_ParamsSpec.$, PageHandler_GetActorLoginPermissions_ResponseParamsSpec.$, [], false);
    }
    revokeActorLoginPermission(site) {
        this.proxy.sendMessage(618179513, PageHandler_RevokeActorLoginPermission_ParamsSpec.$, null, [
            site
        ], false);
    }
    changePasswordManagerPin() {
        return this.proxy.sendMessage(1325560430, PageHandler_ChangePasswordManagerPin_ParamsSpec.$, PageHandler_ChangePasswordManagerPin_ResponseParamsSpec.$, [], false);
    }
    showAddShortcutDialog() {
        this.proxy.sendMessage(120797843, PageHandler_ShowAddShortcutDialog_ParamsSpec.$, null, [], false);
    }
    isAccountStorageActive() {
        return this.proxy.sendMessage(1872599261, PageHandler_IsAccountStorageActive_ParamsSpec.$, PageHandler_IsAccountStorageActive_ResponseParamsSpec.$, [], false);
    }
    setAccountStorageEnabled(enabled) {
        this.proxy.sendMessage(406929733, PageHandler_SetAccountStorageEnabled_ParamsSpec.$, null, [
            enabled
        ], false);
    }
    shouldShowAccountStorageSettingToggle() {
        return this.proxy.sendMessage(7440040, PageHandler_ShouldShowAccountStorageSettingToggle_ParamsSpec.$, PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParamsSpec.$, [], false);
    }
    isPasswordManagerPinAvailable() {
        return this.proxy.sendMessage(1747419348, PageHandler_IsPasswordManagerPinAvailable_ParamsSpec.$, PageHandler_IsPasswordManagerPinAvailable_ResponseParamsSpec.$, [], false);
    }
    switchBiometricAuthBeforeFillingState() {
        return this.proxy.sendMessage(896734983, PageHandler_SwitchBiometricAuthBeforeFillingState_ParamsSpec.$, PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParamsSpec.$, [], false);
    }
    startPasswordChange(credentialId) {
        this.proxy.sendMessage(2046739876, PageHandler_StartPasswordChange_ParamsSpec.$, null, [
            credentialId
        ], false);
    }
    getPasswordManagerActionableError() {
        return this.proxy.sendMessage(403043600, PageHandler_GetPasswordManagerActionableError_ParamsSpec.$, PageHandler_GetPasswordManagerActionableError_ResponseParamsSpec.$, [], false);
    }
    showLastExportedFileInShell() {
        this.proxy.sendMessage(244540236, PageHandler_ShowLastExportedFileInShell_ParamsSpec.$, null, [], false);
    }
    disconnectCloudAuthenticator() {
        return this.proxy.sendMessage(96358413, PageHandler_DisconnectCloudAuthenticator_ParamsSpec.$, PageHandler_DisconnectCloudAuthenticator_ResponseParamsSpec.$, [], false);
    }
    isConnectedToCloudAuthenticator() {
        return this.proxy.sendMessage(1840359922, PageHandler_IsConnectedToCloudAuthenticator_ParamsSpec.$, PageHandler_IsConnectedToCloudAuthenticator_ResponseParamsSpec.$, [], false);
    }
    undoRemoveSavedPasswordOrException() {
        this.proxy.sendMessage(1062610628, PageHandler_UndoRemoveSavedPasswordOrException_ParamsSpec.$, null, [], false);
    }
    requestPasswordsExport() {
        return this.proxy.sendMessage(813318400, PageHandler_RequestPasswordsExport_ParamsSpec.$, PageHandler_RequestPasswordsExport_ResponseParamsSpec.$, [], false);
    }
    getPasswordsExportProgress() {
        return this.proxy.sendMessage(1242915113, PageHandler_GetPasswordsExportProgress_ParamsSpec.$, PageHandler_GetPasswordsExportProgress_ResponseParamsSpec.$, [], false);
    }
}
;
/**
 * An object which receives request messages for the PageHandler
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class PageHandlerReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1012903042, PageHandler_ExtendAuthValidity_ParamsSpec.$, null, impl.extendAuthValidity.bind(impl), false);
        this.helper_internal_.registerHandler(398004220, PageHandler_DeleteAllPasswordManagerData_ParamsSpec.$, PageHandler_DeleteAllPasswordManagerData_ResponseParamsSpec.$, impl.deleteAllPasswordManagerData.bind(impl), false);
        this.helper_internal_.registerHandler(179876083, PageHandler_CopyPlaintextBackupPassword_ParamsSpec.$, PageHandler_CopyPlaintextBackupPassword_ResponseParamsSpec.$, impl.copyPlaintextBackupPassword.bind(impl), false);
        this.helper_internal_.registerHandler(1470033631, PageHandler_RemoveBackupPassword_ParamsSpec.$, null, impl.removeBackupPassword.bind(impl), false);
        this.helper_internal_.registerHandler(1282613696, PageHandler_RemovePasswordException_ParamsSpec.$, null, impl.removePasswordException.bind(impl), false);
        this.helper_internal_.registerHandler(588254614, PageHandler_StartBulkPasswordCheck_ParamsSpec.$, null, impl.startBulkPasswordCheck.bind(impl), false);
        this.helper_internal_.registerHandler(1753027201, PageHandler_MovePasswordsToAccount_ParamsSpec.$, null, impl.movePasswordsToAccount.bind(impl), false);
        this.helper_internal_.registerHandler(852552900, PageHandler_ResetImporter_ParamsSpec.$, PageHandler_ResetImporter_ResponseParamsSpec.$, impl.resetImporter.bind(impl), false);
        this.helper_internal_.registerHandler(2061466491, PageHandler_GetActorLoginPermissions_ParamsSpec.$, PageHandler_GetActorLoginPermissions_ResponseParamsSpec.$, impl.getActorLoginPermissions.bind(impl), false);
        this.helper_internal_.registerHandler(618179513, PageHandler_RevokeActorLoginPermission_ParamsSpec.$, null, impl.revokeActorLoginPermission.bind(impl), false);
        this.helper_internal_.registerHandler(1325560430, PageHandler_ChangePasswordManagerPin_ParamsSpec.$, PageHandler_ChangePasswordManagerPin_ResponseParamsSpec.$, impl.changePasswordManagerPin.bind(impl), false);
        this.helper_internal_.registerHandler(120797843, PageHandler_ShowAddShortcutDialog_ParamsSpec.$, null, impl.showAddShortcutDialog.bind(impl), false);
        this.helper_internal_.registerHandler(1872599261, PageHandler_IsAccountStorageActive_ParamsSpec.$, PageHandler_IsAccountStorageActive_ResponseParamsSpec.$, impl.isAccountStorageActive.bind(impl), false);
        this.helper_internal_.registerHandler(406929733, PageHandler_SetAccountStorageEnabled_ParamsSpec.$, null, impl.setAccountStorageEnabled.bind(impl), false);
        this.helper_internal_.registerHandler(7440040, PageHandler_ShouldShowAccountStorageSettingToggle_ParamsSpec.$, PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParamsSpec.$, impl.shouldShowAccountStorageSettingToggle.bind(impl), false);
        this.helper_internal_.registerHandler(1747419348, PageHandler_IsPasswordManagerPinAvailable_ParamsSpec.$, PageHandler_IsPasswordManagerPinAvailable_ResponseParamsSpec.$, impl.isPasswordManagerPinAvailable.bind(impl), false);
        this.helper_internal_.registerHandler(896734983, PageHandler_SwitchBiometricAuthBeforeFillingState_ParamsSpec.$, PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParamsSpec.$, impl.switchBiometricAuthBeforeFillingState.bind(impl), false);
        this.helper_internal_.registerHandler(2046739876, PageHandler_StartPasswordChange_ParamsSpec.$, null, impl.startPasswordChange.bind(impl), false);
        this.helper_internal_.registerHandler(403043600, PageHandler_GetPasswordManagerActionableError_ParamsSpec.$, PageHandler_GetPasswordManagerActionableError_ResponseParamsSpec.$, impl.getPasswordManagerActionableError.bind(impl), false);
        this.helper_internal_.registerHandler(244540236, PageHandler_ShowLastExportedFileInShell_ParamsSpec.$, null, impl.showLastExportedFileInShell.bind(impl), false);
        this.helper_internal_.registerHandler(96358413, PageHandler_DisconnectCloudAuthenticator_ParamsSpec.$, PageHandler_DisconnectCloudAuthenticator_ResponseParamsSpec.$, impl.disconnectCloudAuthenticator.bind(impl), false);
        this.helper_internal_.registerHandler(1840359922, PageHandler_IsConnectedToCloudAuthenticator_ParamsSpec.$, PageHandler_IsConnectedToCloudAuthenticator_ResponseParamsSpec.$, impl.isConnectedToCloudAuthenticator.bind(impl), false);
        this.helper_internal_.registerHandler(1062610628, PageHandler_UndoRemoveSavedPasswordOrException_ParamsSpec.$, null, impl.undoRemoveSavedPasswordOrException.bind(impl), false);
        this.helper_internal_.registerHandler(813318400, PageHandler_RequestPasswordsExport_ParamsSpec.$, PageHandler_RequestPasswordsExport_ResponseParamsSpec.$, impl.requestPasswordsExport.bind(impl), false);
        this.helper_internal_.registerHandler(1242915113, PageHandler_GetPasswordsExportProgress_ParamsSpec.$, PageHandler_GetPasswordsExportProgress_ResponseParamsSpec.$, impl.getPasswordsExportProgress.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class PageHandler {
    static get $interfaceName() {
        return "password_manager.mojom.PageHandler";
    }
    /**
     * 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 PageHandlerRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the PageHandler
 * 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 PageHandlerCallbackRouter {
    helper_internal_;
    $;
    router_;
    extendAuthValidity;
    deleteAllPasswordManagerData;
    copyPlaintextBackupPassword;
    removeBackupPassword;
    removePasswordException;
    startBulkPasswordCheck;
    movePasswordsToAccount;
    resetImporter;
    getActorLoginPermissions;
    revokeActorLoginPermission;
    changePasswordManagerPin;
    showAddShortcutDialog;
    isAccountStorageActive;
    setAccountStorageEnabled;
    shouldShowAccountStorageSettingToggle;
    isPasswordManagerPinAvailable;
    switchBiometricAuthBeforeFillingState;
    startPasswordChange;
    getPasswordManagerActionableError;
    showLastExportedFileInShell;
    disconnectCloudAuthenticator;
    isConnectedToCloudAuthenticator;
    undoRemoveSavedPasswordOrException;
    requestPasswordsExport;
    getPasswordsExportProgress;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.extendAuthValidity =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1012903042, PageHandler_ExtendAuthValidity_ParamsSpec.$, null, this.extendAuthValidity.createReceiverHandler(false /* expectsResponse */), false);
        this.deleteAllPasswordManagerData =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(398004220, PageHandler_DeleteAllPasswordManagerData_ParamsSpec.$, PageHandler_DeleteAllPasswordManagerData_ResponseParamsSpec.$, this.deleteAllPasswordManagerData.createReceiverHandler(true /* expectsResponse */), false);
        this.copyPlaintextBackupPassword =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(179876083, PageHandler_CopyPlaintextBackupPassword_ParamsSpec.$, PageHandler_CopyPlaintextBackupPassword_ResponseParamsSpec.$, this.copyPlaintextBackupPassword.createReceiverHandler(true /* expectsResponse */), false);
        this.removeBackupPassword =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1470033631, PageHandler_RemoveBackupPassword_ParamsSpec.$, null, this.removeBackupPassword.createReceiverHandler(false /* expectsResponse */), false);
        this.removePasswordException =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1282613696, PageHandler_RemovePasswordException_ParamsSpec.$, null, this.removePasswordException.createReceiverHandler(false /* expectsResponse */), false);
        this.startBulkPasswordCheck =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(588254614, PageHandler_StartBulkPasswordCheck_ParamsSpec.$, null, this.startBulkPasswordCheck.createReceiverHandler(false /* expectsResponse */), false);
        this.movePasswordsToAccount =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1753027201, PageHandler_MovePasswordsToAccount_ParamsSpec.$, null, this.movePasswordsToAccount.createReceiverHandler(false /* expectsResponse */), false);
        this.resetImporter =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(852552900, PageHandler_ResetImporter_ParamsSpec.$, PageHandler_ResetImporter_ResponseParamsSpec.$, this.resetImporter.createReceiverHandler(true /* expectsResponse */), false);
        this.getActorLoginPermissions =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2061466491, PageHandler_GetActorLoginPermissions_ParamsSpec.$, PageHandler_GetActorLoginPermissions_ResponseParamsSpec.$, this.getActorLoginPermissions.createReceiverHandler(true /* expectsResponse */), false);
        this.revokeActorLoginPermission =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(618179513, PageHandler_RevokeActorLoginPermission_ParamsSpec.$, null, this.revokeActorLoginPermission.createReceiverHandler(false /* expectsResponse */), false);
        this.changePasswordManagerPin =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1325560430, PageHandler_ChangePasswordManagerPin_ParamsSpec.$, PageHandler_ChangePasswordManagerPin_ResponseParamsSpec.$, this.changePasswordManagerPin.createReceiverHandler(true /* expectsResponse */), false);
        this.showAddShortcutDialog =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(120797843, PageHandler_ShowAddShortcutDialog_ParamsSpec.$, null, this.showAddShortcutDialog.createReceiverHandler(false /* expectsResponse */), false);
        this.isAccountStorageActive =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1872599261, PageHandler_IsAccountStorageActive_ParamsSpec.$, PageHandler_IsAccountStorageActive_ResponseParamsSpec.$, this.isAccountStorageActive.createReceiverHandler(true /* expectsResponse */), false);
        this.setAccountStorageEnabled =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(406929733, PageHandler_SetAccountStorageEnabled_ParamsSpec.$, null, this.setAccountStorageEnabled.createReceiverHandler(false /* expectsResponse */), false);
        this.shouldShowAccountStorageSettingToggle =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(7440040, PageHandler_ShouldShowAccountStorageSettingToggle_ParamsSpec.$, PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParamsSpec.$, this.shouldShowAccountStorageSettingToggle.createReceiverHandler(true /* expectsResponse */), false);
        this.isPasswordManagerPinAvailable =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1747419348, PageHandler_IsPasswordManagerPinAvailable_ParamsSpec.$, PageHandler_IsPasswordManagerPinAvailable_ResponseParamsSpec.$, this.isPasswordManagerPinAvailable.createReceiverHandler(true /* expectsResponse */), false);
        this.switchBiometricAuthBeforeFillingState =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(896734983, PageHandler_SwitchBiometricAuthBeforeFillingState_ParamsSpec.$, PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParamsSpec.$, this.switchBiometricAuthBeforeFillingState.createReceiverHandler(true /* expectsResponse */), false);
        this.startPasswordChange =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2046739876, PageHandler_StartPasswordChange_ParamsSpec.$, null, this.startPasswordChange.createReceiverHandler(false /* expectsResponse */), false);
        this.getPasswordManagerActionableError =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(403043600, PageHandler_GetPasswordManagerActionableError_ParamsSpec.$, PageHandler_GetPasswordManagerActionableError_ResponseParamsSpec.$, this.getPasswordManagerActionableError.createReceiverHandler(true /* expectsResponse */), false);
        this.showLastExportedFileInShell =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(244540236, PageHandler_ShowLastExportedFileInShell_ParamsSpec.$, null, this.showLastExportedFileInShell.createReceiverHandler(false /* expectsResponse */), false);
        this.disconnectCloudAuthenticator =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(96358413, PageHandler_DisconnectCloudAuthenticator_ParamsSpec.$, PageHandler_DisconnectCloudAuthenticator_ResponseParamsSpec.$, this.disconnectCloudAuthenticator.createReceiverHandler(true /* expectsResponse */), false);
        this.isConnectedToCloudAuthenticator =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1840359922, PageHandler_IsConnectedToCloudAuthenticator_ParamsSpec.$, PageHandler_IsConnectedToCloudAuthenticator_ResponseParamsSpec.$, this.isConnectedToCloudAuthenticator.createReceiverHandler(true /* expectsResponse */), false);
        this.undoRemoveSavedPasswordOrException =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1062610628, PageHandler_UndoRemoveSavedPasswordOrException_ParamsSpec.$, null, this.undoRemoveSavedPasswordOrException.createReceiverHandler(false /* expectsResponse */), false);
        this.requestPasswordsExport =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(813318400, PageHandler_RequestPasswordsExport_ParamsSpec.$, PageHandler_RequestPasswordsExport_ResponseParamsSpec.$, this.requestPasswordsExport.createReceiverHandler(true /* expectsResponse */), false);
        this.getPasswordsExportProgress =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1242915113, PageHandler_GetPasswordsExportProgress_ParamsSpec.$, PageHandler_GetPasswordsExportProgress_ResponseParamsSpec.$, this.getPasswordsExportProgress.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 PagePendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'password_manager.mojom.Page', scope);
    }
}
export class PageRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(PagePendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    onPasswordsExportProgress(status, folderName) {
        this.proxy.sendMessage(647262145, Page_OnPasswordsExportProgress_ParamsSpec.$, null, [
            status,
            folderName
        ], false);
    }
}
;
/**
 * An object which receives request messages for the Page
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class PageReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(647262145, Page_OnPasswordsExportProgress_ParamsSpec.$, null, impl.onPasswordsExportProgress.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class Page {
    static get $interfaceName() {
        return "password_manager.mojom.Page";
    }
    /**
     * 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 PageRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the Page
 * 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 PageCallbackRouter {
    helper_internal_;
    $;
    router_;
    onPasswordsExportProgress;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(PageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.onPasswordsExportProgress =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(647262145, Page_OnPasswordsExportProgress_ParamsSpec.$, null, this.onPasswordsExportProgress.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 DomainInfoSpec = { $: {} };
export const ActorLoginPermissionSpec = { $: {} };
export const PageHandlerFactory_CreatePageHandler_ParamsSpec = { $: {} };
export const PageHandler_ExtendAuthValidity_ParamsSpec = { $: {} };
export const PageHandler_DeleteAllPasswordManagerData_ParamsSpec = { $: {} };
export const PageHandler_DeleteAllPasswordManagerData_ResponseParamsSpec = { $: {} };
export const PageHandler_CopyPlaintextBackupPassword_ParamsSpec = { $: {} };
export const PageHandler_CopyPlaintextBackupPassword_ResponseParamsSpec = { $: {} };
export const PageHandler_RemoveBackupPassword_ParamsSpec = { $: {} };
export const PageHandler_RemovePasswordException_ParamsSpec = { $: {} };
export const PageHandler_StartBulkPasswordCheck_ParamsSpec = { $: {} };
export const PageHandler_MovePasswordsToAccount_ParamsSpec = { $: {} };
export const PageHandler_ResetImporter_ParamsSpec = { $: {} };
export const PageHandler_ResetImporter_ResponseParamsSpec = { $: {} };
export const PageHandler_GetActorLoginPermissions_ParamsSpec = { $: {} };
export const PageHandler_GetActorLoginPermissions_ResponseParamsSpec = { $: {} };
export const PageHandler_RevokeActorLoginPermission_ParamsSpec = { $: {} };
export const PageHandler_ChangePasswordManagerPin_ParamsSpec = { $: {} };
export const PageHandler_ChangePasswordManagerPin_ResponseParamsSpec = { $: {} };
export const PageHandler_ShowAddShortcutDialog_ParamsSpec = { $: {} };
export const PageHandler_IsAccountStorageActive_ParamsSpec = { $: {} };
export const PageHandler_IsAccountStorageActive_ResponseParamsSpec = { $: {} };
export const PageHandler_SetAccountStorageEnabled_ParamsSpec = { $: {} };
export const PageHandler_ShouldShowAccountStorageSettingToggle_ParamsSpec = { $: {} };
export const PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParamsSpec = { $: {} };
export const PageHandler_IsPasswordManagerPinAvailable_ParamsSpec = { $: {} };
export const PageHandler_IsPasswordManagerPinAvailable_ResponseParamsSpec = { $: {} };
export const PageHandler_SwitchBiometricAuthBeforeFillingState_ParamsSpec = { $: {} };
export const PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParamsSpec = { $: {} };
export const PageHandler_StartPasswordChange_ParamsSpec = { $: {} };
export const PageHandler_GetPasswordManagerActionableError_ParamsSpec = { $: {} };
export const PageHandler_GetPasswordManagerActionableError_ResponseParamsSpec = { $: {} };
export const PageHandler_ShowLastExportedFileInShell_ParamsSpec = { $: {} };
export const PageHandler_DisconnectCloudAuthenticator_ParamsSpec = { $: {} };
export const PageHandler_DisconnectCloudAuthenticator_ResponseParamsSpec = { $: {} };
export const PageHandler_IsConnectedToCloudAuthenticator_ParamsSpec = { $: {} };
export const PageHandler_IsConnectedToCloudAuthenticator_ResponseParamsSpec = { $: {} };
export const PageHandler_UndoRemoveSavedPasswordOrException_ParamsSpec = { $: {} };
export const PageHandler_RequestPasswordsExport_ParamsSpec = { $: {} };
export const PageHandler_RequestPasswordsExport_ResponseParamsSpec = { $: {} };
export const PageHandler_GetPasswordsExportProgress_ParamsSpec = { $: {} };
export const PageHandler_GetPasswordsExportProgress_ResponseParamsSpec = { $: {} };
export const Page_OnPasswordsExportProgress_ParamsSpec = { $: {} };
mojo.internal.Struct(DomainInfoSpec.$, 'DomainInfo', [
    mojo.internal.StructField('humanReadableName', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('url', 8, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('signonRealm', 16, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(ActorLoginPermissionSpec.$, 'ActorLoginPermission', [
    mojo.internal.StructField('domainInfo', 0, 0, DomainInfoSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('faviconUrl', 8, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('username', 16, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(PageHandlerFactory_CreatePageHandler_ParamsSpec.$, 'PageHandlerFactory_CreatePageHandler_Params', [
    mojo.internal.StructField('page', 0, 0, mojo.internal.InterfaceProxy(PageRemote), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('handler', 8, 0, mojo.internal.InterfaceRequest(PageHandlerPendingReceiver), null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(PageHandler_ExtendAuthValidity_ParamsSpec.$, 'PageHandler_ExtendAuthValidity_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_DeleteAllPasswordManagerData_ParamsSpec.$, 'PageHandler_DeleteAllPasswordManagerData_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_DeleteAllPasswordManagerData_ResponseParamsSpec.$, 'PageHandler_DeleteAllPasswordManagerData_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_CopyPlaintextBackupPassword_ParamsSpec.$, 'PageHandler_CopyPlaintextBackupPassword_Params', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_CopyPlaintextBackupPassword_ResponseParamsSpec.$, 'PageHandler_CopyPlaintextBackupPassword_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_RemoveBackupPassword_ParamsSpec.$, 'PageHandler_RemoveBackupPassword_Params', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_RemovePasswordException_ParamsSpec.$, 'PageHandler_RemovePasswordException_Params', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_StartBulkPasswordCheck_ParamsSpec.$, 'PageHandler_StartBulkPasswordCheck_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_MovePasswordsToAccount_ParamsSpec.$, 'PageHandler_MovePasswordsToAccount_Params', [
    mojo.internal.StructField('ids', 0, 0, mojo.internal.Array(mojo.internal.Int32, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ResetImporter_ParamsSpec.$, 'PageHandler_ResetImporter_Params', [
    mojo.internal.StructField('deleteFile', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ResetImporter_ResponseParamsSpec.$, 'PageHandler_ResetImporter_ResponseParams', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_GetActorLoginPermissions_ParamsSpec.$, 'PageHandler_GetActorLoginPermissions_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_GetActorLoginPermissions_ResponseParamsSpec.$, 'PageHandler_GetActorLoginPermissions_ResponseParams', [
    mojo.internal.StructField('sites', 0, 0, mojo.internal.Array(ActorLoginPermissionSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_RevokeActorLoginPermission_ParamsSpec.$, 'PageHandler_RevokeActorLoginPermission_Params', [
    mojo.internal.StructField('site', 0, 0, ActorLoginPermissionSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ChangePasswordManagerPin_ParamsSpec.$, 'PageHandler_ChangePasswordManagerPin_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_ChangePasswordManagerPin_ResponseParamsSpec.$, 'PageHandler_ChangePasswordManagerPin_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ShowAddShortcutDialog_ParamsSpec.$, 'PageHandler_ShowAddShortcutDialog_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_IsAccountStorageActive_ParamsSpec.$, 'PageHandler_IsAccountStorageActive_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_IsAccountStorageActive_ResponseParamsSpec.$, 'PageHandler_IsAccountStorageActive_ResponseParams', [
    mojo.internal.StructField('active', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_SetAccountStorageEnabled_ParamsSpec.$, 'PageHandler_SetAccountStorageEnabled_Params', [
    mojo.internal.StructField('enabled', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ShouldShowAccountStorageSettingToggle_ParamsSpec.$, 'PageHandler_ShouldShowAccountStorageSettingToggle_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParamsSpec.$, 'PageHandler_ShouldShowAccountStorageSettingToggle_ResponseParams', [
    mojo.internal.StructField('shouldShow', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_IsPasswordManagerPinAvailable_ParamsSpec.$, 'PageHandler_IsPasswordManagerPinAvailable_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_IsPasswordManagerPinAvailable_ResponseParamsSpec.$, 'PageHandler_IsPasswordManagerPinAvailable_ResponseParams', [
    mojo.internal.StructField('isAvailable', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_SwitchBiometricAuthBeforeFillingState_ParamsSpec.$, 'PageHandler_SwitchBiometricAuthBeforeFillingState_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParamsSpec.$, 'PageHandler_SwitchBiometricAuthBeforeFillingState_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_StartPasswordChange_ParamsSpec.$, 'PageHandler_StartPasswordChange_Params', [
    mojo.internal.StructField('credentialId', 0, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_GetPasswordManagerActionableError_ParamsSpec.$, 'PageHandler_GetPasswordManagerActionableError_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_GetPasswordManagerActionableError_ResponseParamsSpec.$, 'PageHandler_GetPasswordManagerActionableError_ResponseParams', [
    mojo.internal.StructField('error', 0, 0, PasswordManagerActionableErrorSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_ShowLastExportedFileInShell_ParamsSpec.$, 'PageHandler_ShowLastExportedFileInShell_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_DisconnectCloudAuthenticator_ParamsSpec.$, 'PageHandler_DisconnectCloudAuthenticator_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_DisconnectCloudAuthenticator_ResponseParamsSpec.$, 'PageHandler_DisconnectCloudAuthenticator_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_IsConnectedToCloudAuthenticator_ParamsSpec.$, 'PageHandler_IsConnectedToCloudAuthenticator_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_IsConnectedToCloudAuthenticator_ResponseParamsSpec.$, 'PageHandler_IsConnectedToCloudAuthenticator_ResponseParams', [
    mojo.internal.StructField('connected', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_UndoRemoveSavedPasswordOrException_ParamsSpec.$, 'PageHandler_UndoRemoveSavedPasswordOrException_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_RequestPasswordsExport_ParamsSpec.$, 'PageHandler_RequestPasswordsExport_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_RequestPasswordsExport_ResponseParamsSpec.$, 'PageHandler_RequestPasswordsExport_ResponseParams', [
    mojo.internal.StructField('result', 0, 0, ExportPasswordsResultSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(PageHandler_GetPasswordsExportProgress_ParamsSpec.$, 'PageHandler_GetPasswordsExportProgress_Params', [], [[0, 8],]);
mojo.internal.Struct(PageHandler_GetPasswordsExportProgress_ResponseParamsSpec.$, 'PageHandler_GetPasswordsExportProgress_ResponseParams', [
    mojo.internal.StructField('status', 0, 0, ExportProgressStatusSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(Page_OnPasswordsExportProgress_ParamsSpec.$, 'Page_OnPasswordsExportProgress_Params', [
    mojo.internal.StructField('status', 0, 0, ExportProgressStatusSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('folderName', 8, 0, mojo.internal.String, null, true /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
export const browserProxyFactory = new MojoBrowserProxyFactory(PageHandlerRemote, PageCallbackRouter, (remote, receiver) => PageHandlerFactory.getRemote().createPageHandler(remote, receiver));
