/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { RippleInterface } from '@material/mwc-base/utils.js'; /** * Class that encapsulates the events handlers for `mwc-ripple` * * * Example: * ``` * class XFoo extends LitElement { * async getRipple() { * this.renderRipple = true; * await this.updateComplete; * return this.renderRoot.querySelector('mwc-ripple'); * } * rippleHandlers = new RippleHandlers(() => this.getRipple()); * * render() { * return html` *
* ${this.renderRipple ? html`` : ''} * `; * } * } * ``` */ export declare class RippleHandlers implements RippleInterface { startPress: (ev?: Event) => void; endPress: () => void; startFocus: () => void; endFocus: () => void; startHover: () => void; endHover: () => void; constructor( /** Function that returns a `mwc-ripple` */ rippleFn: () => Promise); }