license import { MDCChipActionFocusBehavior , MDCChipActionType } from '../action/constants' ; import { MDCChipAttributes , MDCChipCssClasses , MDCChipEvents } from './constants' ; /**
 * 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 MDCChipAdapter { /** Adds the given class to the root element. */ addClass ( className ) : void ; /** Emits the given event with the given detail. */ emitEvent < D extends object > ( eventName , eventDetail ) : void ; /** Returns the child actions provided by the chip. */ getActions ( ) : MDCChipActionType [ ] ; /** Returns the value for the given attribute, if it exists. */ getAttribute ( attrName ) : string | null ; /** Returns the ID of the root element. */ getElementID ( ) : string ; /** Returns the offset width of the root element. */ getOffsetWidth ( ) : number ; /** Returns true if the root element has the given class. */ hasClass ( className ) : boolean ; /** Proxies to the MDCChipAction#isSelectable method. */ isActionSelectable ( action ) : boolean ; /** Proxies to the MDCChipAction#isSelected method. */ isActionSelected ( action ) : boolean ; /** Proxies to the MDCChipAction#isFocusable method. */ isActionFocusable ( action ) : boolean ; /** Proxies to the MDCChipAction#isDisabled method. */ isActionDisabled ( action ) : boolean ; /** Returns true if the text direction is right-to-left. */ isRTL ( ) : boolean ; /** Removes the given class from the root element. */ removeClass ( className ) : void ; /** Proxies to the MDCChipAction#setDisabled method. */ setActionDisabled ( action , isDisabled ) : void ; /** Proxies to the MDCChipAction#setFocus method. */ setActionFocus ( action , behavior ) : void ; /** Proxies to the MDCChipAction#setSelected method. */ setActionSelected ( action , isSelected ) : void ; /** Sets the style property to the given value. */ setStyleProperty ( property , value ) : void ; }