1 | import * as React from 'react';
|
2 | import { TouchRippleActions } from '../ButtonBase/TouchRipple';
|
3 | type ControlledPromise<T = unknown> = Promise<T> & {
|
4 | resolve: Function;
|
5 | reject: Function;
|
6 | };
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare class LazyRipple {
|
12 |
|
13 | ref: React.MutableRefObject<TouchRippleActions | null>;
|
14 |
|
15 | shouldMount: boolean;
|
16 |
|
17 | private mounted;
|
18 |
|
19 | private didMount;
|
20 |
|
21 | private setShouldMount;
|
22 | static create(): LazyRipple;
|
23 | static use(): LazyRipple;
|
24 | constructor();
|
25 | mount(): ControlledPromise<unknown>;
|
26 | mountEffect: () => void;
|
27 | start(...args: Parameters<TouchRippleActions['start']>): void;
|
28 | stop(...args: Parameters<TouchRippleActions['stop']>): void;
|
29 | pulsate(...args: Parameters<TouchRippleActions['pulsate']>): void;
|
30 | }
|
31 | export default function useLazyRipple(): LazyRipple;
|
32 | export {};
|