/** @packageDocumentation
 * @module Notification
 */
import "./Pointer.scss";
import * as React from "react";
import { RelativePosition, UiEvent } from "@itwin/appui-abstract";
import { OutputMessagePriority } from "@itwin/core-frontend";
import type { XAndY } from "@itwin/core-geometry";
import type { CommonProps } from "@itwin/core-react";
import type { NotifyMessageDetailsType, NotifyMessageType } from "./ReactNotifyMessageDetails.js";
/** Properties of [[PointerMessage]] component.
 * @public
 */
export interface PointerMessageProps extends CommonProps {
    /** Text to display */
    message?: string;
}
/** [[PointerMessage]] state.
 * @internal
 */
interface PointerMessageState {
    isVisible: boolean;
    message: NotifyMessageType;
    detailedMessage?: NotifyMessageType;
    position: XAndY;
    messageDetails?: NotifyMessageDetailsType;
}
/** [[PointerMessageChangedEvent]] arguments.
 * @public
 * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
 */
export interface PointerMessageChangedEventArgs {
    isVisible: boolean;
    priority: OutputMessagePriority;
    message: NotifyMessageType;
    detailedMessage?: NotifyMessageType;
    relativePosition?: RelativePosition;
    viewport?: HTMLElement;
    pt?: XAndY;
    messageDetails?: NotifyMessageDetailsType;
}
/** Pointer Message Changed Event emitted by the [[PointerMessage]] component
 * @public
 * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
 */
export declare class PointerMessageChangedEvent extends UiEvent<PointerMessageChangedEventArgs> {
}
/** Pointer message pops up near pointer when attempting an invalid interaction.
 * @public
 */
export declare class PointerMessage extends React.Component<PointerMessageProps, PointerMessageState> {
    private static _pointerMessageChangedEvent;
    private static readonly _onPointerMessagePositionChangedEvent;
    static get onPointerMessageChangedEvent(): PointerMessageChangedEvent;
    static showMessage(message: NotifyMessageDetailsType): void;
    static updateMessage(displayPoint: XAndY, relativePosition: RelativePosition): void;
    static hideMessage(): void;
    readonly state: Readonly<PointerMessageState>;
    private _relativePosition?;
    private _viewport?;
    private _position?;
    private _size;
    render(): React.ReactNode;
    componentDidMount(): void;
    componentWillUnmount(): void;
    private _handleSizeChanged;
    private _handlePointerMessageChangedEvent;
    private _handlePointerMessagePositionChangedEvent;
    private updatePosition;
}
export {};
//# sourceMappingURL=Pointer.d.ts.map