/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview The interface for a component that is automatically hidden
 * when Blockly.hideChaff is called.
 * @author kozbial@google.com (Monica Kozbial)
 */

'use strict';

goog.module('Blockly.IAutoHideable');
goog.module.declareLegacyNamespace();

goog.require('Blockly.IComponent');


/**
 * Interface for a component that can be automatically hidden.
 * @extends {Blockly.IComponent}
 * @interface
 */
const IAutoHideable = function() {};

/**
 * Hides the component. Called in Blockly.hideChaff.
 * @param {boolean} onlyClosePopups Whether only popups should be closed.
 *   Flyouts should not be closed if this is true.
 */
IAutoHideable.prototype.autoHide;

exports = IAutoHideable;

/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview The interface for a component that is automatically hidden
 * when Blockly.hideChaff is called.
 * @author kozbial@google.com (Monica Kozbial)
 */

'use strict';

goog.module('Blockly.IAutoHideable');
goog.module.declareLegacyNamespace();

const IComponent = goog.require('Blockly.IComponent');


/**
 * Interface for a component that can be automatically hidden.
 * @extends {IComponent}
 * @interface
 */
const IAutoHideable = function() {};

/**
 * Hides the component. Called in Blockly.hideChaff.
 * @param {boolean} onlyClosePopups Whether only popups should be closed.
 *   Flyouts should not be closed if this is true.
 */
IAutoHideable.prototype.autoHide;

exports = IAutoHideable;

Migrate core/interfaces/i_autohideable.js named requires