import { ScanditHTMLElement } from 'scandit-web-datacapture-core/build/js/private/utils/index.js';
import { Card } from './Card.js';
declare enum CardListEvents {
Collapsed = "collapsed",
WillCollapse = "willcollapse",
Expanded = "expanded",
WillExpand = "willexpand",
Tap = "cardtap"
}
declare class CardList extends ScanditHTMLElement {
static tag: "scandit-find-card-list";
private static readonly observedAttributes;
private onCardClickHandler;
private updateFadeMaskHandler;
constructor();
set collapsed(value: boolean);
get collapsed(): boolean;
private get items();
private get root();
static create(): CardList;
static register(): void;
private static createStyleElement;
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: keyof this, _oldValue: this[keyof this], _newValue: this[keyof this]): void;
renderCards(items: Card[]): void;
clearCards(): void;
/**
* put the card on the top of the list and animate it
*/
unshift(item: Card): Promise;
private onCardClick;
private updateFadeMask;
private toggle;
private expand;
private collapse;
}
declare global {
interface HTMLElementTagNameMap {
[CardList.tag]: CardList;
}
interface HTMLElementEventMap {
[CardListEvents.Collapsed]: CustomEvent;
[CardListEvents.Expanded]: CustomEvent;
[CardListEvents.WillExpand]: CustomEvent;
[CardListEvents.WillCollapse]: CustomEvent;
[CardListEvents.Tap]: CustomEvent<{
detail: {
card: Card;
};
}>;
}
}
export { CardList, CardListEvents };