/** @packageDocumentation * @module ContentView */ import * as React from "react"; import type { Id64String } from "@itwin/core-bentley"; import type { IModelConnection, ScreenViewport, ViewState } from "@itwin/core-frontend"; import { UiEvent } from "@itwin/appui-abstract"; import { ConfigurableCreateInfo, ConfigurableUiControl, ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl.js"; /** ControlControl Activated 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 ContentControlActivatedEventArgs { activeContentControl: ContentControl; oldContentControl?: ContentControl; } /** ContentControl Activated Event class. * @public * @deprecated in 4.13.0. This class should not be used by applications to instantiate objects. */ export declare class ContentControlActivatedEvent extends UiEvent { } /** Interface to be implemented when the ContentControl supports ViewSelector changes * @public * @deprecated in 4.16.0. Implemented by classes derived from a deprecated {@link ContentControl}. */ export interface SupportsViewSelectorChange { /** Returns true if this control supports reacting to ViewSelector changes. */ supportsViewSelectorChange: boolean; /** Process a ViewSelector change. */ processViewSelectorChange(iModel: IModelConnection, viewDefinitionId: Id64String, viewState: ViewState, name: string): Promise; } /** The base class for Frontstage content controls. * @public * @deprecated in 4.16.0. Extends a deprecated class {@link ConfigurableUiControl}. */ export declare class ContentControl extends ConfigurableUiControl { protected _reactNode: React.ReactNode; private _keyAdded; /** Creates an instance of ContentControl. * @param info An object that the subclass must pass to this base class. * @param options Options provided via the applicationData in a [[ContentProps]]. */ constructor(info: ConfigurableCreateInfo, options: any); /** Called when this ContentControl is activated */ onActivated(): void; /** Called when this ContentControl is deactivated */ onDeactivated(): void; /** Gets the type of ConfigurableUiControl, which is 'Content' in this case */ getType(): ConfigurableUiControlType; /** Returns true if this control is a Viewport control. */ get isViewport(): boolean; /** Returns the ScreenViewport if isViewport is true */ get viewport(): ScreenViewport | undefined; protected getKeyedReactNode(): React.ReactNode; protected getReactNode(): React.ReactNode; /** The React node associated with this control. */ get reactNode(): React.ReactNode; set reactNode(r: React.ReactNode); /** Get the NavigationAidControl associated with this ContentControl */ get navigationAidControl(): string; } /** * @beta * @deprecated in 4.16.0. Use {@link UiItemsProvider} to provide a floating {@link Widget} instead. * Additionally, use {@link ContentOverlay} component to display the active content indicator. */ export declare class FloatingContentControl extends ContentControl { constructor(uniqueId: string, name: string, node: React.ReactNode); } //# sourceMappingURL=ContentControl.d.ts.map