/** @packageDocumentation
 * @module Frontstage
 */
import { UiEvent } from "@itwin/appui-abstract";
import type { NineZoneState, PanelSide } from "@itwin/appui-layout-react";
import { WidgetDef } from "../widgets/WidgetDef";
import { WidgetHost } from "../widgets/WidgetHost";
import type { StagePanelConfig, StagePanelSectionConfig } from "./StagePanelConfig";
import { StagePanelLocation } from "./StagePanelLocation";
import { StagePanelSection } from "./StagePanelSection";
/** Enum for StagePanel state.
 * @public
 */
export declare enum StagePanelState {
    Off = 0,
    Minimized = 1,
    Open = 2,
    Popup = 3
}
/** Panel state changed event args interface.
 * @public
 */
export interface PanelStateChangedEventArgs {
    panelDef: StagePanelDef;
    panelState: StagePanelState;
}
/** Panel state changed event class.
 * @beta
 */
export declare class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {
}
/** @internal */
export interface PanelSizeChangedEventArgs {
    panelDef: StagePanelDef;
    size: number | undefined;
}
/** @internal */
export declare class PanelSizeChangedEvent extends UiEvent<PanelSizeChangedEventArgs> {
}
/** Panel pinned changed event args interface.
 * @public
 */
export interface PanelPinnedChangedEventArgs {
    panelDef: StagePanelDef;
    pinned: boolean;
}
/**
 * A StagePanelDef represents each Stage Panel within a Frontstage.
 * @public
 */
export declare class StagePanelDef extends WidgetHost {
    private _initialConfig?;
    private _location;
    private _start;
    private _end;
    /** Constructor for PanelDef. */
    constructor();
    /** @internal */
    static create(config: StagePanelConfig, location: StagePanelLocation): StagePanelDef;
    /** @internal */
    initializeFromConfig(config: StagePanelConfig | undefined, location: StagePanelLocation): void;
    /** @internal */
    get initialConfig(): StagePanelConfig | undefined;
    /** Current size of the panel */
    get size(): number | undefined;
    set size(size: number | undefined);
    /** @internal */
    handleSizeChanged(size: number | undefined): void;
    /** Indicates whether the panel is resizable. */
    get resizable(): boolean;
    /** Indicates whether the panel is pinned. */
    get pinned(): boolean;
    set pinned(pinned: boolean);
    /** @internal */
    handlePinnedChanged(pinned: boolean): void;
    /** Location of panel. */
    get location(): StagePanelLocation;
    /** Panel state. Defaults to PanelState.Open. */
    get panelState(): StagePanelState;
    set panelState(panelState: StagePanelState);
    /** @internal */
    handlePanelStateChanged(panelState: StagePanelState): void;
    /** @internal */
    get defaultState(): StagePanelState;
    /** @internal */
    get defaultSize(): number | undefined;
    /** Gets the list of Widgets. */
    get widgetDefs(): ReadonlyArray<WidgetDef>;
    /** @internal */
    updateDynamicWidgetDefs(stageId: string, stageUsage: string, location: StagePanelLocation, _section: StagePanelSection | undefined, allStageWidgetDefs: WidgetDef[]): void;
    /** @internal */
    getPanelSectionDef(section: StagePanelSection): StagePanelSectionDef;
}
/** @internal */
export declare class StagePanelSectionDef extends WidgetHost {
    /** @internal */
    initializeFromConfig(config: StagePanelSectionConfig | undefined): void;
}
/** @internal */
export declare function toPanelSide(location: StagePanelLocation): PanelSide;
/** @internal */
export declare const setPanelPinned: (nineZone: NineZoneState, side: PanelSide, pinned: boolean) => NineZoneState;
/** @internal */
export declare function getPanelState(state: NineZoneState, side: PanelSide): StagePanelState.Minimized | StagePanelState.Open;
//# sourceMappingURL=StagePanelDef.d.ts.map