import { aJ as SceneLight, P as ObjectBinding, a2 as ObjectBindingType, z as MeasurementUnit, w as MeasurementSettings, at as SavedMeasurement, t as MeasurementPoint, v as MeasurementResult, y as MeasurementTool, s as MeasurementCollection, Z as ObjectBindingStyle, _ as ObjectBindingTarget, aQ as SceneProductConfig, p as MaterialVariantGroup, af as ProductDefinition, ap as ProductSelections, ad as ProductConfiguration, aq as ProductSku, ag as ProductDefinitionWarning, a7 as ProductAvailability, am as ProductOptionState, an as ProductPrice, b4 as SequenceEasing, aX as SceneSequence, b9 as SequenceTrack, ba as SequenceValue, b5 as SequenceKeyframe, aS as SceneSectionConfig, aV as SceneSectionSettings } from './modelFileResolver-An1aQ0D3.js'; export { f as AnimationLoopMode, B as BindingEdit, D as DEFAULT_MODEL_VIEWER_LABELS, k as DEFAULT_SCENE_CONFIG, l as DEFAULT_SECTION_CONFIG, m as DeepPartial, E as EnvironmentPreset, G as GlitchModeName, I as IsolatedObjectBindings, K as KernelSizeName, M as MATERIAL_BLENDING_MODES, o as MATERIAL_SIDES, q as MaterialVariantOption, r as MeasurementAnchor, u as MeasurementPosition, x as MeasurementStatus, J as ModelViewerLabelKey, L as ModelViewerLabels, N as ObjectActionEvent, Q as ObjectBindingAction, R as ObjectBindingCameraState, S as ObjectBindingDecal, T as ObjectBindingMaterial, U as ObjectBindingMaterialBlendingMode, V as ObjectBindingMaterialSide, W as ObjectBindingPatch, X as ObjectBindingSelector, Y as ObjectBindingStatus, $ as ObjectBindingTextureChannel, a0 as ObjectBindingTextureSlot, a1 as ObjectBindingTransform, a4 as ObjectPointerEvent, a5 as ObjectSurfacePoint, a6 as ProductAppearance, a8 as ProductCheckoutContext, a9 as ProductCheckoutLink, aa as ProductCommerceAdapter, ab as ProductCommerceContext, ac as ProductCommerceResult, ae as ProductConfigurationIssue, ah as ProductGroupDisplay, ai as ProductOption, aj as ProductOptionGroup, ak as ProductOptionRef, al as ProductOptionRule, ao as ProductPricing, ar as RampTypeName, as as ReducedMotionSetting, au as SceneAnimationClipConfig, av as SceneAnimationConfig, aw as SceneAnnotationCameraView, ax as SceneAnnotationImage, ay as SceneAnnotationLink, az as SceneAnnotationMarker, aA as SceneBackgroundConfig, aB as SceneCameraConfig, aC as SceneCinematicConfig, aD as SceneCinematicWaypoint, aE as SceneConfig, aG as SceneConfigPatch, aH as SceneEnvironmentConfig, aI as SceneGroundShadowConfig, aK as SceneLightAttachment, aL as SceneLightType, aM as SceneLightingConfig, aN as SceneModelConfig, aO as SceneModelRenderer, aP as ScenePostProcessingConfig, aR as SceneSectionAxis, aW as SceneSelectionSet, aY as SceneShadowConfig, aZ as SceneStyleColorScale, a_ as SceneStyleCondition, a$ as SceneStylePulse, b0 as SceneStyleRule, b1 as SceneWireframeConfig, b2 as SequenceCameraView, b3 as SequenceControls, b6 as SequenceObjectProperty, b7 as SequencePlaybackState, b8 as SequenceTarget, bb as SequenceVector3, bc as StyledObjectBindings, bd as StyledObjectPulse, bh as ViewerIsolation, bn as applyIsolation, bo as applyStyleRules, bp as chooseMaterialVariant, bq as colorScaleValue, br as isolatedBindingKeys, bs as material, bt as parseSelectionSets, bu as patchBindings, bv as patchSceneConfig, bw as selectBindingKeys, bx as selectBindings } from './modelFileResolver-An1aQ0D3.js'; import { I as InspectAssetOptions, h as AssetDiagnosticsReport, e as ARSnapshotSource, A as ARExportOptions, d as ARSnapshot, _ as ShareableViewerState, aa as ViewerStateStorage } from './modelViewerProps-H_K454u_.js'; export { a as ARHandoffOptions, b as ARHandoffRequest, c as ARHandoffStatus, g as AssetDiagnosticIssue, i as AssetDiagnosticsSource, j as AssetTextureDiagnostic, k as AssetTransform, p as ComparisonCategory, q as ComparisonChange, r as ComparisonHighlight, s as ComparisonObject, t as ComparisonStatus, u as ConfigurationComparisonInput, v as ConfigurationComparisonReport, M as MAX_VIEWER_STATE_BYTES, X as RendererBackend, Z as SemanticComparisonOptions, $ as StreamingDiagnostics, a4 as ViewerConfiguration, a6 as ViewerObjectInfo, a9 as ViewerRuntimeStats, ac as compareViewerConfigurations, ad as groundAsset, ae as parseAssetTransform, af as parseViewerState, ag as prepareViewerState, ah as serializeViewerState, ai as snapAssetToGrid } from './modelViewerProps-H_K454u_.js'; import { Object3D } from 'three'; import 'react'; import '@react-three/drei'; /** A light's id plus whichever of its settings you want to set. */ type SceneLightInput = Pick & Partial>; /** * A complete scene light from just the settings you care about; the rest take * their defaults (a white, visible, non-shadowing point light at the origin). * Use it to list lights in `sceneConfig.lighting.lights`: * * ```ts * patchSceneConfig(DEFAULT_SCENE_CONFIG, { * lighting: { * lights: [ * sceneLight({ id: "key", type: "directional", position: [4, 8, 4], castShadow: true }), * ], * }, * }); * ``` */ declare function sceneLight(light: SceneLightInput): SceneLight; /** * Validates an object-bindings literal while preserving its exact keys and * literal values for TypeScript autocomplete and derived union types. * * This is an identity function at runtime. */ declare function defineObjectBindings>(bindings: TBindings): TBindings; /** Binding-map keys preserved by defineObjectBindings. */ type ObjectBindingKey> = Extract; /** Action ids declared on one binding in a defined bindings map. */ type ObjectBindingActionId, TKey extends ObjectBindingKey> = TBindings[TKey]["actions"] extends readonly (infer TAction)[] ? TAction extends { id: infer TId extends string; } ? TId : never : never; declare function inferType(nodeName: string): ObjectBindingType; declare function createDefaultBinding(nodeName: string, takesImage?: boolean): ObjectBinding; declare function buildBindingsFromNodes(nodeNames: string[], withoutUvs?: ReadonlySet): Record; /** * The action ids the runtime actually recognises. * * `ObjectBindingAction["id"]` is a widened string union, so any typo type-checks * and then falls through ModelViewer's `handleAction` switch to `default: break` * — the button renders and silently does nothing. This catalog is what the * Binding Builder offers in a dropdown so authors pick instead of type. */ type ActionHandling = "viewer" | "host"; type ActionCatalogEntry = { id: string; label: string; /** * "viewer" — ModelViewer's own `handleAction` switch implements the behaviour. * "host" — a naming convention only; the viewer just forwards it to the * consumer's `onAction` callback, which must implement it. */ handling: ActionHandling; description: string; }; declare const ACTION_CATALOG: readonly ActionCatalogEntry[]; declare function findCatalogAction(id: string): ActionCatalogEntry | undefined; declare const MEASUREMENT_UNITS: readonly MeasurementUnit[]; declare function measurementScale(settings?: MeasurementSettings, legacyUnit?: string): { displayUnit: string; metersPerUnit: number; factor: number; }; /** Uses an existing two-point distance as a known real-world length. */ declare function calibrateMeasurements(rawLength: number, knownLength: number, unit: MeasurementUnit, settings?: MeasurementSettings): MeasurementSettings; declare function measurementValue(tool: MeasurementTool, points: readonly MeasurementPoint[]): { value: number; dimension: 0 | 1 | 2; } | null; declare function measurementResult(measurement: SavedMeasurement, settings?: MeasurementSettings, legacyUnit?: string, points?: MeasurementPoint[], status?: MeasurementResult["status"]): MeasurementResult; /** Reject malformed measurement data before loading a file or shared scene. */ declare function parseMeasurements(input: unknown): MeasurementCollection; declare function serializeMeasurements(collection: MeasurementCollection): string; /** Supply live resolved results when exporting measurements on transformed objects. */ declare function measurementsToCsv(collection: MeasurementCollection, results?: readonly MeasurementResult[], legacyUnit?: string): string; /** A structural node; objectId is present only on bindable, named meshes. */ type ViewerHierarchyNode = { id: string; parentId: string | null; name: string; objectId?: string; }; /** Preserves source groups without renaming, reparenting, or changing transforms. */ declare function collectObjectHierarchy(root: Object3D): ViewerHierarchyNode[]; /** Detached style snapshot. Identity, transforms, decals, and actions stay with their object. */ declare function copyBindingStyle(binding: ObjectBinding): ObjectBindingStyle; /** Replaces authored style overrides on every target, preserving all other fields. */ declare function pasteBindingStyle(bindings: Record, target: ObjectBindingTarget, style: ObjectBindingStyle): Record; declare function parseProductDefinition(input: unknown): ProductDefinition; declare function defaultProductSelections(product: ProductDefinition): ProductSelections; declare function evaluateProductConfiguration(product: ProductDefinition, input?: ProductSelections, quantity?: number): ProductConfiguration; /** * The fewest other choices to change so that a blocked option can be chosen, or * null if no combination allows it. Breadth-first over the groups each conflict * names, so it stays small on any real product. */ declare function resolveProductSelections(product: ProductDefinition, selections: ProductSelections, groupId: string, optionId: string, quantity?: number): ProductSelections | null; /** A price from the definition's own pricing, or null if it has none. */ declare function productPriceFromDefinition(product: ProductDefinition, configuration: ProductConfiguration): ProductPrice | null; /** Formats minor units in a currency, such as 24900 USD as "$249.00". */ declare function formatProductPrice(amountMinor: number, currency: string, signed?: boolean): string; /** * The link that buys this configuration, or null while it can't be bought. Every * value is URL-encoded, so a label or SKU can't change where the link goes. */ declare function productCheckoutUrl(product: ProductDefinition, configuration: ProductConfiguration): string | null; /** Choices as short text for a link: "finish:oak,seat:linen". Unset groups are left out. */ declare function encodeProductSelections(selections: ProductSelections): string; /** Reads choices from a link. Anything this product doesn't have is ignored, not an error. */ declare function decodeProductSelections(text: string, product: ProductDefinition): ProductSelections; /** * An SKU table with one row for each allowed combination, built by joining each * choice's own SKU with a separator. Combinations with a choice that has no SKU * are left out, as are those the rules forbid. */ declare function generateProductSkus(product: ProductDefinition, separator?: string): ProductSku[]; /** What won't work as the author expects: shown while editing, never to shoppers. */ declare function productDefinitionWarnings(product: ProductDefinition, bindings?: Record, variantNames?: readonly string[]): ProductDefinitionWarning[]; /** Availability considers both directions of each rule and explains blocked choices. */ declare function productOptionStates(product: ProductDefinition, selections: ProductSelections, availability?: ProductAvailability, quantity?: number): ProductOptionState[]; declare function parseSceneProduct(input: unknown): SceneProductConfig; /** A portable configuration never contains prices, adapter functions, or credentials. */ declare function serializeProductConfiguration(configuration: ProductConfiguration): string; declare function parseProductConfiguration(input: unknown, product: ProductDefinition): ProductConfiguration; /** Always start from the base bindings so changing/removing an option removes its old overrides. */ declare function applyProductOptions(bindings: Record, product?: SceneProductConfig, baseVariants?: readonly string[], variantGroups?: readonly MaterialVariantGroup[]): { objectBindings: Record; activeVariants: string[]; }; /** Inspect loaded data without fetching, rendering, modifying, or disposing it. */ declare function inspectAsset(scene: Object3D, options?: InspectAssetOptions): AssetDiagnosticsReport; /** Exports the visible edited geometry, live PBR materials, decals and placements. */ declare function exportConfiguredUSDZ(sources: ARSnapshotSource[], options?: ARExportOptions): Promise; declare function createARHandoffUrl(state: ShareableViewerState, baseUrl: string, storage?: ViewerStateStorage, signal?: AbortSignal): Promise; declare function readARHandoffUrl(value: string, storage?: ViewerStateStorage, signal?: AbortSignal): Promise; declare const SEQUENCE_OBJECT_PROPERTIES: readonly ["position", "rotation", "scale", "visible", "baseColor", "emissive", "opacity", "roughness", "metalness", "emissiveIntensity"]; declare const SEQUENCE_EASINGS: readonly SequenceEasing[]; /** Validates imported JSON and returns detached, sorted, executable-code-free data. */ declare function parseSequences(input: unknown): SceneSequence[]; declare function sampleSequenceTrack(track: SequenceTrack, time: number): SequenceValue | null; declare function upsertSequenceKeyframe(track: SequenceTrack, frame: SequenceKeyframe): SequenceTrack; /** Validate stored section settings, including legacy single-plane settings. */ declare function parseSectionConfig(input: unknown): SceneSectionConfig; /** Detach a reusable snapshot without nesting the preset library. */ declare function sectionSnapshot(section: SceneSectionConfig): SceneSectionSettings; export { ACTION_CATALOG, ARExportOptions, ARSnapshot, ARSnapshotSource, type ActionCatalogEntry, type ActionHandling, AssetDiagnosticsReport, InspectAssetOptions, MEASUREMENT_UNITS, MaterialVariantGroup, MeasurementCollection, MeasurementPoint, MeasurementResult, MeasurementSettings, MeasurementTool, MeasurementUnit, ObjectBinding, type ObjectBindingActionId, type ObjectBindingKey, ObjectBindingStyle, ObjectBindingTarget, ObjectBindingType, ProductAvailability, ProductConfiguration, ProductDefinition, ProductDefinitionWarning, ProductOptionState, ProductPrice, ProductSelections, ProductSku, SEQUENCE_EASINGS, SEQUENCE_OBJECT_PROPERTIES, SavedMeasurement, SceneLight, type SceneLightInput, SceneProductConfig, SceneSectionConfig, SceneSequence, SequenceEasing, SequenceKeyframe, SequenceTrack, SequenceValue, ShareableViewerState, type ViewerHierarchyNode, ViewerStateStorage, applyProductOptions, buildBindingsFromNodes, calibrateMeasurements, collectObjectHierarchy, copyBindingStyle, createARHandoffUrl, createDefaultBinding, decodeProductSelections, defaultProductSelections, defineObjectBindings, encodeProductSelections, evaluateProductConfiguration, exportConfiguredUSDZ, findCatalogAction, formatProductPrice, generateProductSkus, inferType, inspectAsset, measurementResult, measurementScale, measurementValue, measurementsToCsv, parseMeasurements, parseProductConfiguration, parseProductDefinition, parseSceneProduct, parseSectionConfig, parseSequences, pasteBindingStyle, productCheckoutUrl, productDefinitionWarnings, productOptionStates, productPriceFromDefinition, readARHandoffUrl, resolveProductSelections, sampleSequenceTrack, sceneLight, sectionSnapshot, serializeMeasurements, serializeProductConfiguration, upsertSequenceKeyframe };