/// <reference path="../../index.d.ts" />
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
import type { FlowItem } from "../calcite-flow-item/customElement.js";
import type { FlowItemLikeElement } from "./interfaces.js";

/**
 * @cssproperty [--calcite-flow-background-color] - Specifies the component's background color.
 * @slot  - A slot for adding `calcite-flow-item`s to the component.
 */
export abstract class Flow extends LitElement {
  /**
   * Removes selection of the currently active `calcite-flow-item`.
   *
   * @returns Promise<HTMLCalciteFlowItemElement | FlowItemLikeElement>
   */
  back(): Promise<FlowItem | FlowItemLikeElement>;
  /**
   * Sets focus on the component.
   *
   * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
   * @returns Promise<void>
   * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
   */
  setFocus(options?: FocusOptions): Promise<void>;
}