/** @packageDocumentation * @module ContentView */ import * as React from "react"; import type { ScreenViewport } from "@itwin/core-frontend"; import type { ViewStateProp } from "@itwin/imodel-components-react"; /** * @beta * @deprecated in 4.16.0. Props of deprecated component {@link FloatingViewportContent}. */ export interface FloatingViewportContentProps { /** callback used to construct context menu when user right-clicks on canvas/viewport */ onContextMenu?: (e: React.MouseEvent) => boolean; /** viewport/content control uniqueId */ contentId: string; /** The initial view state used to create the viewport, or a function that returns it (will refresh when the function changes) */ initialViewState: ViewStateProp; /** Function to get a reference to the ScreenViewport */ viewportRef?: React.Ref; } /** * @beta * @deprecated in 4.16.0. Wrap {@link @itwin/imodel-components-react#ViewportComponent} component with a {@link ContentOverlay} instead. */ export declare function FloatingViewportContent(props: FloatingViewportContentProps): React.JSX.Element; /** * @public * @deprecated in 4.16.0. Props of deprecated component {@link FloatingViewportContentWrapper}. */ export interface FloatingViewportContentWrapperProps { readonly children?: React.ReactNode; } /** * @public * @deprecated in 4.16.0. Use {@link ContentOverlay} component to display the active content indicator instead. */ export declare function FloatingViewportContentWrapper({ children, }: FloatingViewportContentWrapperProps): React.JSX.Element; /** * @alpha * @deprecated in 4.16.0. Use {@link @itwin/imodel-components-react#ViewportComponent} component instead. */ export declare function useFloatingViewport(args: FloatingViewportContentProps): { viewportControl: React.JSX.Element; }; //# sourceMappingURL=FloatingViewportContent.d.ts.map