license import { EventSource } 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 a class to the root element.
     */ addClass ( className ) : void ; /**
     * Removes a class from the root element.
     */ removeClass ( className ) : void ; return hasClass ( className ) : boolean ; /**
     * Adds a class to the leading icon element.
     */ addClassToLeadingIcon ( className ) : void ; /**
     * Removes a class from the leading icon element.
     */ removeClassFromLeadingIcon ( className ) : void ; return eventTargetHasClass ( target , className ) : boolean ; return getAttribute ( attr ) : string | null ; /**
     * Emits a custom "MDCChip:interaction" event denoting the chip has been
     * interacted with (typically on click or keydown).
     */ notifyInteraction ( ) : void ; /**
     * Emits a custom "MDCChip:selection" event denoting the chip has been selected or deselected.
     */ notifySelection ( selected , chipSetShouldIgnore ) : void ; /**
     * Emits a custom "MDCChip:trailingIconInteraction" event denoting the trailing icon has been
     * interacted with (typically on click or keydown).
     */ notifyTrailingIconInteraction ( ) : void ; /**
     * Emits a custom event "MDCChip:removal" denoting the chip will be removed.
     */ notifyRemoval ( removedAnnouncement ) : void ; /**
     * Emits a custom event "MDCChip:navigation" denoting a focus navigation event.
     */ notifyNavigation ( key , source ) : void ; /**
     * Emits when editing starts.
     */ notifyEditStart ( ) : void ; /**
     * Emits when editing finishes.
     */ notifyEditFinish ( ) : void ; return getComputedStyleValue ( propertyName ) : string ; /**
     * Sets the property value of the given style property on the root element.
     */ setStyleProperty ( propertyName , value ) : void ; return hasLeadingIcon ( ) : boolean ; return getRootBoundingClientRect ( ) : ClientRect ; return getCheckmarkBoundingClientRect ( ) : ClientRect | null ; /**
     * Sets the value of the attribute on the primary action content.
     */ setPrimaryActionAttr ( attr , value ) : void ; /**
     * Gives focus to the primary action.
     */ focusPrimaryAction ( ) : void ; /**
     * Sets focus to the trailing action.
     */ focusTrailingAction ( ) : void ; /**
     * Removes focus from the trailing action.
     */ removeTrailingActionFocus ( ) : void ; /**
     * Returns true if the trailing action is navigable.
     * Should return the value of MDCChipTrailingAction#isNavigable() or false.
     */ isTrailingActionNavigable ( ) : boolean ; return isRTL ( ) : boolean ; }