1 | import * as React from "react";
|
2 | import { IConstructor } from "../../common/constructor";
|
3 | import { HotkeysEvents } from "./hotkeysEvents";
|
4 | import { IHotkeysProps } from "./hotkeysTypes";
|
5 | export interface IHotkeysTargetComponent extends React.Component {
|
6 |
|
7 | render(): React.ReactElement<any> | null | undefined;
|
8 | |
9 |
|
10 |
|
11 |
|
12 | renderHotkeys: () => React.ReactElement<IHotkeysProps>;
|
13 | }
|
14 |
|
15 | export declare function HotkeysTarget<T extends IConstructor<IHotkeysTargetComponent>>(WrappedComponent: T): {
|
16 | new (...args: any[]): {
|
17 |
|
18 | globalHotkeysEvents: HotkeysEvents;
|
19 |
|
20 | localHotkeysEvents: HotkeysEvents;
|
21 | componentDidMount(): void;
|
22 | componentWillUnmount(): void;
|
23 | render(): JSX.Element;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | renderHotkeys: () => React.ReactElement<IHotkeysProps, string | React.JSXElementConstructor<any>>;
|
29 | context: any;
|
30 | setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
31 | forceUpdate(callback?: (() => void) | undefined): void;
|
32 | readonly props: Readonly<{}> & Readonly<{
|
33 | children?: React.ReactNode;
|
34 | }>;
|
35 | state: Readonly<{}>;
|
36 | refs: {
|
37 | [key: string]: React.ReactInstance;
|
38 | };
|
39 | shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
40 | componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
41 | getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
42 | componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
43 | componentWillMount?(): void;
|
44 | UNSAFE_componentWillMount?(): void;
|
45 | componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
46 | UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
47 | componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
48 | UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
49 | };
|
50 | displayName: string;
|
51 | } & T;
|
52 |
|
\ | No newline at end of file |