/**
 * @fileoverview This component is DEPRECATED, and the code is frozen.
 * All changes & bugfixes should be made to PanelStack2 instead.
 */
import * as React from "react";
import { AbstractPureComponent } from "../../common";
import type { IPanel } from "./panelProps";
export interface IPanelViewProps {
    /**
     * Callback invoked when the user presses the back button or a panel invokes
     * the `closePanel()` injected prop method.
     */
    onClose: (removedPanel: IPanel<any>) => void;
    /**
     * Callback invoked when a panel invokes the `openPanel(panel)` injected
     * prop method.
     */
    onOpen: (addedPanel: IPanel<any>) => void;
    /** The panel to be displayed. */
    panel: IPanel;
    /** The previous panel in the stack, for rendering the "back" button. */
    previousPanel?: IPanel;
    /** Whether to show the header with the "back" button. */
    showHeader: boolean;
}
export declare class PanelView extends AbstractPureComponent<IPanelViewProps> {
    render(): React.JSX.Element;
    private maybeRenderHeader;
    private maybeRenderBack;
    private handleClose;
}
