import type Accessor from "../../core/Accessor.js";

/** @since 5.0 */
export interface TableListVisibleElementsProperties extends Partial<Pick<TableListVisibleElements, "closeButton" | "collapseButton" | "errors" | "filter" | "flow" | "heading" | "statusIndicators" | "temporaryTableIndicators">> {}

/**
 * The visible elements that are displayed within the table list.
 * This provides the ability to turn on/off individual elements of the table list.
 */
export default class TableListVisibleElements extends Accessor {
  constructor(properties?: TableListVisibleElementsProperties);
  /**
   * Indicates whether to display a close button in the header.
   *
   * @default false
   * @since 5.0
   */
  accessor closeButton: boolean;
  /**
   * Indicates whether to display a collapse button in the header.
   *
   * @default false
   * @since 5.0
   */
  accessor collapseButton: boolean;
  /**
   * Indicates whether to display layers with load errors.
   *
   * @default false
   * @since 5.0
   */
  accessor errors: boolean;
  /**
   * Indicates whether to display a filter input box when then number of list items is equal to or greater than the value set in [TableList.minFilterItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#minFilterItems), allowing users to filter tables by their title.
   *
   * @default false
   * @since 5.0
   */
  accessor filter: boolean;
  /**
   * Determines whether the table list should be shown within its built-in [flow component](https://developers.arcgis.com/calcite-design-system/components/flow/) or if the flow component should be excluded. The table list will be displayed within its original flow component if set to `true`. The flow component will be omitted from the table list if set to `false`. To place the table list into an existing Calcite flow component, set this property to `false`.
   *
   * @default true
   * @since 5.0
   */
  accessor flow: boolean;
  /**
   * Indicates whether to display the table list heading. The heading text is "Table List". The heading level can be set with the [TableList.headingLevel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#headingLevel).
   *
   * @default false
   * @since 5.0
   */
  accessor heading: boolean;
  /**
   * Indicates whether the status indicators will be displayed.
   *
   * @default true
   * @since 5.0
   */
  accessor statusIndicators: boolean;
  /**
   * Indicates whether temporary table indicators will be displayed for tables with [Layer.persistenceEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#persistenceEnabled) set to `false`. A [temporary icon](https://developers.arcgis.com/calcite-design-system/icons/?icon=temporary&library=Calcite%20UI&query=temporary) will be displayed on the near side of the table title.
   *
   * @default false
   * @since 5.0
   */
  accessor temporaryTableIndicators: boolean;
}