/** @packageDocumentation * @module Common */ import * as React from "react"; /** Properties for [[withIsPressed]] React higher-order component * @public * @deprecated in 4.15.0. Props of deprecated {@link withIsPressed} HOC. */ export interface WithIsPressedProps { /** initial value for pressed status */ isPressed?: boolean; /** callback function for [isPressed] change */ onIsPressedChange?: (isPressed: boolean) => void; } /** withIsPressed is a React higher-order component that adds pointer and mouse events. * @public * @deprecated in 4.15.0. Not used by AppUI. */ export declare const withIsPressed: (Component: React.ComponentType) => { new (props: ComponentProps & WithIsPressedProps): { handleOnPointerDown: () => void; handleOnPointerUp: () => void; handleOnMouseLeave: () => void; changeIsPressed: (isPressed: boolean) => void; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly; state: Readonly<{}>; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; new (props: ComponentProps & WithIsPressedProps, context: any): { handleOnPointerDown: () => void; handleOnPointerUp: () => void; handleOnMouseLeave: () => void; changeIsPressed: (isPressed: boolean) => void; render(): React.JSX.Element; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly; state: Readonly<{}>; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: React.Context | undefined; propTypes?: any; }; //# sourceMappingURL=withIsPressed.d.ts.map