import * as React from 'react'; import { IRolContext } from '../RolContext'; export interface IBaseToolProps { /** * Unique id is mandatory. */ uid: string; /** * Activated. */ activated?: boolean; /** * Activated by default when all others are deactivated. */ defaultActivated?: boolean; /** * Independant. */ independant?: boolean; /** * Disabled. */ disabled?: boolean; /** * Class name. */ className?: string; } export declare class BaseTool

extends React.Component { static defaultProps: { activated: boolean; defaultActivated: boolean; independant: boolean; className: string; }; static contextType: React.Context; context: IRolContext; componentDidMount(): void; componentDidUpdate(prevProps: P, prevState: S, snap: never): void; componentWillUnmount(): void; toolDidConstruct(): void; toolDidActivate(): void; toolDidDeactivate(): void; toolDidDestroy(): void; /** * Activate tool. */ activate(force?: boolean): void; /** * Deactivate tool */ deactivate(): void; handleBaseToolClick: () => void; renderTool(): React.ReactNode; render(): React.ReactNode; } export declare function withBaseTool

(component: string | React.FunctionComponent

| React.ComponentClass, defaultProps?: Partial

): { new (props: P): { renderTool(): React.ReactNode; context: IRolContext; componentDidMount(): void; componentDidUpdate(prevProps: P, prevState: never, snap: never): void; componentWillUnmount(): void; toolDidConstruct(): void; toolDidActivate(): void; toolDidDeactivate(): void; toolDidDestroy(): void; /** * Activate tool. */ activate(force?: boolean): void; /** * Deactivate tool */ deactivate(): void; handleBaseToolClick: () => void; render(): React.ReactNode; setState(state: ((prevState: never, props: Readonly

) => Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly

; 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; context: IRolContext; componentDidMount(): void; componentDidUpdate(prevProps: P, prevState: never, snap: never): void; componentWillUnmount(): void; toolDidConstruct(): void; toolDidActivate(): void; toolDidDeactivate(): void; toolDidDestroy(): void; /** * Activate tool. */ activate(force?: boolean): void; /** * Deactivate tool */ deactivate(): void; handleBaseToolClick: () => void; render(): React.ReactNode; setState(state: ((prevState: never, props: Readonly

) => Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly

; 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: { activated: boolean; defaultActivated: boolean; independant: boolean; className: string; }; contextType: React.Context; };