/** * Spatial Computing Engine * Foundation for AR/VR glass components with 3D space awareness, * gesture recognition, and mixed reality integration * * @demo DEMO / EXPERIMENTAL COMPONENT — uses in-component mock data. * Spatial tracking, gestures, and mixed-reality state are simulated locally and * NOT backed by a real WebXR / spatial-tracking runtime. Wire it to a real XR * runtime before production use. */ import React from "react"; export interface SpatialPosition { x: number; y: number; z: number; pitch: number; yaw: number; roll: number; } export interface SpatialBounds { min: SpatialPosition; max: SpatialPosition; shape: "box" | "sphere" | "cylinder" | "plane"; constraints?: { lockX?: boolean; lockY?: boolean; lockZ?: boolean; lockRotation?: boolean; }; } export type SpatialGesture = "tap" | "pinch" | "grab" | "swipe" | "rotate" | "scale" | "point" | "wave" | "push" | "pull" | "circle" | "custom"; export interface GestureEvent { type: SpatialGesture; position: SpatialPosition; velocity: SpatialPosition; confidence: number; duration: number; data?: Record; } export interface SpatialAnchor { id: string; position: SpatialPosition; persistent: boolean; cloudSync: boolean; accuracy: number; lastUpdate: number; } export type MREnvironment = "desktop" | "mobile" | "vr-headset" | "ar-glasses" | "ar-phone" | "holographic"; export interface SpatialContext { environment: MREnvironment; capabilities: { headTracking: boolean; handTracking: boolean; eyeTracking: boolean; bodyTracking: boolean; environmentMapping: boolean; occlusion: boolean; lighting: boolean; physics: boolean; }; displayInfo: { fov: number; resolution: { width: number; height: number; }; refreshRate: number; ipd?: number; }; } interface SpatialComputingEngineProps { children: React.ReactNode; className?: string; position?: Partial; bounds?: SpatialBounds; enableGestures?: boolean; enableAnchoring?: boolean; enablePhysics?: boolean; enableOcclusion?: boolean; gestureTypes?: SpatialGesture[]; spatialId?: string; onGesture?: (gesture: GestureEvent) => void; onPositionChange?: (position: SpatialPosition) => void; onAnchorUpdate?: (anchor: SpatialAnchor) => void; showDebugHud?: boolean; } export declare const SpatialComputingEngine: React.FC; export declare const VRGlassComponent: React.FC; export declare const ARGlassComponent: React.FC; export declare const HoloGlassComponent: React.FC; export declare const useSpatialTracking: () => { position: SpatialPosition; isTracking: boolean; startTracking: () => void; stopTracking: () => void; }; export default SpatialComputingEngine; //# sourceMappingURL=SpatialComputingEngine.d.ts.map