/** @packageDocumentation
 * @module Frontstage
 */
import { UiEvent } from "@itwin/appui-abstract";
import type { NineZoneState } from "../layout/state/NineZoneState";
import type { PanelSide } from "../layout/widget-panels/PanelTypes";
import { WidgetDef } from "../widgets/WidgetDef";
import { WidgetHost } from "../widgets/WidgetHost";
import type { StagePanelConfig, StagePanelSectionConfig, StagePanelSizeSpec } from "./StagePanelConfig";
import { StagePanelLocation } from "./StagePanelLocation";
import { StagePanelSection } from "./StagePanelSection";
import { StagePanelState } from "./StagePanelState";
/** Panel state changed event args interface.
 * @public
 * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
 */
export interface PanelStateChangedEventArgs {
    panelDef: StagePanelDef;
    panelState: StagePanelState;
}
/** Panel state changed event class.
 * @beta
 * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects.
 */
export declare class PanelStateChangedEvent extends UiEvent<PanelStateChangedEventArgs> {
}
/** @internal */
export interface PanelSizeChangedEventArgs {
    panelDef: StagePanelDef;
    size: number | undefined;
}
/** Panel pinned changed event args interface.
 * @public
 * @deprecated in 4.13.0. Event args are inferred from a listener. If explicit type is needed use a type helper.
 */
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.
     * @deprecated in 4.12.0. Use {@link StagePanelDef.sizeSpec} instead.
     */
    get size(): number | undefined;
    set size(size: number | undefined);
    /** Current size of the panel */
    get sizeSpec(): StagePanelSizeSpec | undefined;
    set sizeSpec(size: StagePanelSizeSpec | 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 defaultPinned(): boolean;
    /** @internal */
    get defaultResizable(): boolean;
    /** Gets the list of Widgets. */
    get widgetDefs(): ReadonlyArray<WidgetDef>;
    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