import * as React from 'react'; import { BaseButtonTool, IBaseButtonToolProps } from './BaseButtonTool'; export interface IOneShotButtonTool extends IBaseButtonToolProps { } export declare class OneShotButtonTool
extends BaseButtonTool
{
toolDidActivate(): void;
/**
* @override
* On ne gère pas la props toggle sur les OneShotButtonTool
* @param event
*/
handleBaseButtonClick: (event: React.MouseEvent (component: string | React.FunctionComponent | React.ComponentClass , defaultProps?: Partial ): {
new (props: P): {
renderTool(): React.ReactNode;
toolDidActivate(): void;
/**
* @override
* On ne gère pas la props toggle sur les OneShotButtonTool
* @param event
*/
handleBaseButtonClick: (event: React.MouseEvent ) => Pick ;
state: never;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly , nextState: never, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: never): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
};
new (props: P, context: any): {
renderTool(): React.ReactNode;
toolDidActivate(): void;
/**
* @override
* On ne gère pas la props toggle sur les OneShotButtonTool
* @param event
*/
handleBaseButtonClick: (event: React.MouseEvent ) => Pick ;
state: never;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly , nextState: never, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly , prevState: never): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly , nextState: never, nextContext: any): void;
};
defaultProps: {
toggle: boolean;
className: string;
buttonTitle: string;
activated: boolean;
defaultActivated: boolean;
independant: boolean;
};
contextType: React.Context