license import { IndexDiff , MWCListIndex } from './mwc-list-foundation' ; /**
 * Defines the shape of the adapter expected by the foundation.
 * Implement this adapter for your framework of choice to delegate updates to
 * the component in your framework of choice. See architecture documentation
 * for more details.
 * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
 */ export interface MDCListAdapter { getListItemCount ( ) : number ; getFocusedElementIndex ( ) : number ; setAttributeForElementIndex : ( index : number , attribute : string , value : string ) => void ; getAttributeForElementIndex : ( index : number , attribute : string ) => string | null ; getSelectedStateForElementIndex : ( index : number ) => boolean ; setDisabledStateForElementIndex : ( index : number , value : boolean ) => void ; getDisabledStateForElementIndex : ( index : number ) => boolean ; setSelectedStateForElementIndex : ( index : number , value : boolean ) => void ; setActivatedStateForElementIndex : ( index : number , value : boolean ) => void ; /**
     * Focuses list item at the index specified.
     */ focusItemAtIndex ( index ) : void ; /**
     * Sets the tabindex to the value specified for all button/a element children
     * of the list item at the index specified.
     */ setTabIndexForElementIndex ( index , tabIndexValue ) : void ; return isRootFocused ( ) : boolean ; /**
     * Notifies user action on list item.
     */ notifyAction ( index ) : void ; notifySelected ( index , diff ? ) : void ; return isFocusInsideList ( ) : boolean ; }