import { VegaSlimmer } from '../../../../vega-slimmer/vega-slimmer-core';
import { VegaModal } from '../../vega-modal';
import { Nullable } from '../../../../types/general';
/**
 * Opened modal stack controller
 */
export declare class VegaModalOpenedModalStackController extends VegaSlimmer {
  private static openedModalStack;
  host: VegaModal['host'];
  /**
   * Adds the current host element to an array in a modal toggle controller.
   */
  push(): void;
  /**
   * Removes the current modal from the opened modal stack.
   */
  remove(): void;
  /**
   * Get visible modal length.
   *
   * @returns {number} - Visible modal length.
   */
  length(): number;
  /**
   * Returns the previous HTMLVegaModalElement from the openedModalStack if it exists.
   *
   * @returns {Nullable<HTMLVegaModalElement>} - The previous HTMLVegaModalElement.
   */
  peek(): Nullable<HTMLVegaModalElement>;
}
