license import { MDCMenuDimensions , MDCMenuDistance , MDCMenuPoint } from './types' ; /**
 * 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 MDCMenuSurfaceAdapter { addClass ( className ) : void ; removeClass ( className ) : void ; hasClass ( className ) : boolean ; hasAnchor ( ) : boolean ; isElementInContainer ( el ) : boolean ; isFocused ( ) : boolean ; isRtl ( ) : boolean ; getInnerDimensions ( ) : MDCMenuDimensions ; getAnchorDimensions ( ) : ClientRect | null ; getWindowDimensions ( ) : MDCMenuDimensions ; getBodyDimensions ( ) : MDCMenuDimensions ; getWindowScroll ( ) : MDCMenuPoint ; setPosition ( position ) : void ; setMaxHeight ( height ) : void ; setTransformOrigin ( origin ) : void ; getOwnerDocument ? ( ) : Document ; /** Saves the element that was focused before the menu surface was opened. */ saveFocus ( ) : void ; /** Restores focus to the element that was focused before the menu surface was opened. */ restoreFocus ( ) : void ; /** Emits an event when the menu surface is closed. */ notifyClose ( ) : void ; /** Emits an event when the menu surface is closing. */ notifyClosing ( ) : void ; /** Emits an event when the menu surface is opened. */ notifyOpen ( ) : void ; }