import * as React from 'react';
import { TETHER_PLACEMENT } from './constants';
import type { Override } from '../helpers/overrides';
/** LayersManager */
export declare type LayersManagerProps = {
    children: React.ReactNode;
    overrides?: {
        AppContainer?: Override;
        LayersContainer?: Override;
    };
    zIndex?: number;
};
export declare type LayersManagerState = {
    escapeKeyHandlers: Array<() => unknown>;
    docClickHandlers: Array<(event: MouseEvent) => unknown>;
};
export declare type LayersContextProps = {
    host?: HTMLElement | null;
    zIndex?: number;
    addEscapeHandler: (a: () => unknown) => void;
    removeEscapeHandler: (a: () => unknown) => void;
    addDocClickHandler: (a: () => unknown) => void;
    removeDocClickHandler: (a: () => unknown) => void;
};
/** Layer */
export declare type LayerProps = {
    /** Content to be rendered in the Layer. */
    children: React.ReactNode;
    /** A DOM element where the Layer will be inserted into as a child.
     The host value comes from the layers context provider.
     If there is no `LayersManager` added and therefore no host element
     in the context, `document.body` will be used as a container element. */
    host?: HTMLElement | null;
    /** Defines the location (child order) at which the layer will be inserted in
     the `host` element. */
    index?: number;
    /** Identifies if this layer is a hover layer (and subsequent document clicks
     should be triggered on the last registered non-hover layer. */
    isHoverLayer?: boolean;
    /** A custom DOM element where the layer is inserted to as a child.
     Note that the `index` prop does not work with a custom `mountNode`. */
    mountNode?: HTMLElement;
    /** Handler called when escape key is pressed.
      Only the top most layer's handler is called. */
    onEscape?: () => unknown;
    /** Handler called when mousedown event happens on the document.
      Only the top most layer's handler is called. */
    onDocumentClick?: (event: MouseEvent) => unknown;
    /** A handler that is called when the Layer is mounted. */
    onMount?: () => unknown;
    /** A handler that is called when the Layer is unmounted. */
    onUnmount?: () => unknown;
    /** A value of z-index to be set on the layer.
     The zIndex value comes from the layers context provider. */
    zIndex?: number;
};
export declare type LayerComponentProps = {
    children: React.ReactNode;
    host: HTMLElement | undefined | null;
    index?: number;
    isHoverLayer?: boolean;
    mountNode?: HTMLElement;
    onEscape?: () => unknown;
    onDocumentClick?: (event: MouseEvent) => unknown;
    onMount?: () => unknown;
    onUnmount?: () => unknown;
    zIndex?: number;
};
export declare type LayerState = {
    container: HTMLElement | undefined | null;
};
/** TetherBehavior */
export declare type TetherPlacement = keyof typeof TETHER_PLACEMENT;
export declare type NormalizedOffset = {
    top: number;
    left: number;
};
export declare type NormalizedOffsets = {
    arrow?: NormalizedOffset;
    popper: NormalizedOffset;
};
export declare type PopperOffset = {
    top?: number | null;
    left?: number | null;
};
export declare type PopperDataObject = {
    offsets: {
        arrow?: PopperOffset;
        popper: PopperOffset;
    };
    placement: string;
};
export declare type PopperOptions = {
    placement: string;
    modifiers: {
        arrow: {};
        computeStyle: {};
        applyStyle: {};
        applyReactStyle: {
            fn: (data: PopperDataObject) => void;
        };
    };
};
export declare type TetherProps = {
    /** The reference element used to position the popper. */
    anchorRef: HTMLElement | undefined | null;
    /** The arrow element that is passed as an arrow modifier to alter
     the popper positioning. */
    arrowRef?: HTMLElement | null;
    /** The element used as a popper. */
    popperRef: HTMLElement | undefined | null;
    /** Content to be rendered in the Popper. */
    children: React.ReactNode;
    /** A handler that is called when popper positioning changes. */
    onPopperUpdate: (b: NormalizedOffsets, a: PopperDataObject) => unknown;
    /** Recommended placement of the popper. */
    placement: TetherPlacement;
    /** Options to be passes to the Popper on its initialization.
     Refer to the [Popper documentation](https://github.com/popperjs/popper.js/blob/v1.x/docs/_includes/popper-documentation.md)
     for the full list of available options. */
    popperOptions: any;
};
export declare type TetherState = {
    isMounted: boolean;
};
