import * as react from 'react'; import { L as ModelViewerLabels, bi as ViewerLoading, bl as ViewerReveal, H as ModelFormat, j as CameraLimits, as as ReducedMotionSetting, E as EnvironmentPreset, bk as ViewerModelInfo } from './modelFileResolver-An1aQ0D3.mjs'; export { D as DEFAULT_MODEL_VIEWER_LABELS, p as MaterialVariantGroup, q as MaterialVariantOption, J as ModelViewerLabelKey, bj as ViewerModelBounds } from './modelFileResolver-An1aQ0D3.mjs'; /** How the render's colors are mapped to the screen. */ type ViewerToneMapping = "aces" | "agx" | "neutral" | "none"; type SimpleModelViewerProps = { /** Accessible viewer name. Defaults to the localized "3D model viewer" label. */ "aria-label"?: string; /** ID(s) of visible text naming this viewer; takes precedence over aria-label. */ "aria-labelledby"?: string; /** Plain-text overrides for built-in viewer text. */ labels?: ModelViewerLabels; modelUrl: string; /** * An image shown in the viewer's place until its 3D view is drawn: a render * or photo of the model, best framed as the viewer frames it. */ poster?: string; /** * `"lazy"` (default) starts the 3D view when the viewer is on or near the * screen. When the page needs room for viewers in view, one scrolled away * from goes back to a picture of itself, and comes back as it was. `"eager"` * starts at once and keeps its view. */ loading?: ViewerLoading; /** * `"interaction"` keeps the poster, with a "View in 3D" button, until the * visitor asks for the 3D view. Default `"auto"`. */ reveal?: ViewerReveal; /** Explicit format for extensionless or signed model URLs. */ modelFormat?: ModelFormat; /** Directory containing the DRACO decoder files, or false. */ dracoDecoderPath?: string | false; /** Directory containing the Basis/KTX2 transcoder files, or false. */ ktx2TranscoderPath?: string | false; /** Enable the bundled Meshopt decoder. Defaults to true. */ meshopt?: boolean; backgroundColor?: string; showSceneObjectsPanel?: boolean; showSceneSettingsPanel?: boolean; enableModelUpload?: boolean; zoomOnSelected?: boolean; highlightOnHover?: boolean; showLoadingOverlay?: boolean; /** * Show the built-in message with a retry button when the model fails to load. * Defaults to true. Set false when `onLoadError` drives your own error UI. */ showLoadError?: boolean; refitOnResize?: boolean; /** Camera limits in scene units/degrees. Default zoom range scales to the model. */ cameraLimits?: CameraLimits; /** Show a camera reset button. Defaults to true. */ showResetButton?: boolean; /** * Space left around the model when it's framed, as a fraction of its * largest dimension. Defaults to 0.1. While it auto-rotates, the framing * also allows for its spin so no part leaves the view. */ fitPadding?: number; /** Wheel, pinch and middle-drag zoom. Defaults to true. */ zoom?: boolean; /** * For a viewer inside a scrolling page: the mouse wheel scrolls the page * (hold Ctrl or ⌘ to zoom; a trackpad pinch still zooms), and on touch * screens a vertical swipe scrolls the page while a sideways drag rotates. * Defaults to false. */ pageScroll?: boolean; /** * Cuts motion the viewer starts on its own: auto-rotate doesn't start, and * camera moves jump instead of gliding. `"user"` (default) follows the * visitor's `prefers-reduced-motion` setting; `"always"` and `"never"` * override it. */ reducedMotion?: ReducedMotionSetting; backgroundEnabled?: boolean; autoRotate?: boolean; /** * Lighting preset. `"neutral"` (default) is a studio built into the * package; the others are downloaded from a public CDN when chosen. */ envPreset?: EnvironmentPreset; /** Self-hosted HDR environment; overrides envPreset without a preset request. */ environmentUrl?: string; /** Disable environment-map loading; ambient and directional lights remain. */ environmentEnabled?: boolean; exposure?: number; ambientIntensity?: number; ambientColor?: string; directionalIntensity?: number; directionalColor?: string; /** How strongly the environment lights the model. Defaults to 1. */ envIntensity?: number; /** The environment's rotation around the vertical axis, in degrees. */ envRotation?: number; /** Blurs the environment when it's shown as the background, from 0 to 1. */ backgroundBlur?: number; /** Defaults to `"aces"`. */ toneMapping?: ViewerToneMapping; /** A soft contact shadow under the model. */ groundShadow?: boolean; /** From 0 to 1. Defaults to 0.5. */ groundShadowOpacity?: number; /** A reference grid under the model. Left out of captures. */ showFloorGrid?: boolean; /** Draws every material as wireframe. */ wireframe?: boolean; /** Multiplies the auto-rotate speed. Defaults to 1. */ autoRotateSpeed?: number; /** The camera's vertical field of view, in degrees. Defaults to 45. */ fov?: number; /** The model finished loading: its bounds and mesh count. */ onModelLoaded?: (model: ViewerModelInfo) => void; onLoadError?: (error: unknown) => void; }; declare function SimpleModelViewer(props: SimpleModelViewerProps): react.JSX.Element; export { ModelFormat, ModelViewerLabels, ReducedMotionSetting, SimpleModelViewer, type SimpleModelViewerProps, ViewerLoading, ViewerModelInfo, ViewerReveal, type ViewerToneMapping };