@react-three/drei 10.8.0-alpha.1 → 11.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { CSSProperties, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
3
3
  import * as FIBER from "@react-three/fiber";
4
4
  import { Color, ComputeFunction, Euler, ObjectMap, ReactThreeFiber, ThreeElement, ThreeElements, ThreeEvent, Vector2, Vector3 } from "@react-three/fiber";
@@ -37,7 +37,7 @@ import { DragConfig } from "@use-gesture/react";
37
37
  import * as zustand0 from "zustand";
38
38
  import { StoreApi } from "zustand";
39
39
  import { Assign, Falsey } from "utility-types";
40
- import * as hls_js0 from "hls.js";
40
+ import * as hls_js1 from "hls.js";
41
41
  import Hls from "hls.js";
42
42
  import * as detect_gpu0 from "detect-gpu";
43
43
  import { GetGPUTier } from "detect-gpu";
@@ -257,7 +257,7 @@ type RenderTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args'> & {
257
257
  eventPriority?: number;
258
258
  frames?: number;
259
259
  compute?: (event: any, state: any, previous: any) => false | undefined;
260
- children: React$1.ReactNode;
260
+ children: React.ReactNode;
261
261
  };
262
262
  declare const RenderTexture: ForwardRefComponent<RenderTextureProps, THREE$2.Texture>;
263
263
  //#endregion
@@ -293,7 +293,7 @@ type CubeCameraOptions = {
293
293
  fog?: Fog | FogExp2;
294
294
  };
295
295
  type CubeCameraProps = Omit<ThreeElements['group'], 'children'> & {
296
- children?: (tex: Texture$2) => React$1.ReactNode;
296
+ children?: (tex: Texture$2) => React.ReactNode;
297
297
  frames?: number;
298
298
  } & CubeCameraOptions;
299
299
  declare function useCubeCamera({
@@ -316,13 +316,13 @@ declare function CubeCamera({
316
316
  envMap,
317
317
  fog,
318
318
  ...props
319
- }: CubeCameraProps): React$1.JSX.Element;
319
+ }: CubeCameraProps): React.JSX.Element;
320
320
  //#endregion
321
321
  //#region src/core/Cameras/OrthographicCamera/OrthographicCamera.d.ts
322
322
  type OrthographicCameraProps = Omit<ThreeElements['orthographicCamera'], 'ref' | 'children'> & {
323
323
  makeDefault?: boolean;
324
324
  manual?: boolean;
325
- children?: React$1.ReactNode | ((texture: THREE$2.Texture) => React$1.ReactNode);
325
+ children?: React.ReactNode | ((texture: THREE$2.Texture) => React.ReactNode);
326
326
  frames?: number;
327
327
  resolution?: number;
328
328
  envMap?: THREE$2.Texture;
@@ -333,7 +333,7 @@ declare const OrthographicCamera: ForwardRefComponent<OrthographicCameraProps, O
333
333
  type PerspectiveCameraProps = Omit<ThreeElements['perspectiveCamera'], 'ref' | 'children'> & {
334
334
  makeDefault?: boolean;
335
335
  manual?: boolean;
336
- children?: React$1.ReactNode | ((texture: THREE$2.Texture) => React$1.ReactNode);
336
+ children?: React.ReactNode | ((texture: THREE$2.Texture) => React.ReactNode);
337
337
  frames?: number;
338
338
  resolution?: number;
339
339
  envMap?: THREE$2.Texture;
@@ -371,7 +371,7 @@ type DragControlsProps = {
371
371
  onDragStart?: (origin: THREE$2.Vector3) => void;
372
372
  onDrag?: (localMatrix: THREE$2.Matrix4, deltaLocalMatrix: THREE$2.Matrix4, worldMatrix: THREE$2.Matrix4, deltaWorldMatrix: THREE$2.Matrix4) => void;
373
373
  onDragEnd?: () => void;
374
- children: React$1.ReactNode;
374
+ children: React.ReactNode;
375
375
  dragConfig?: DragConfig;
376
376
  };
377
377
  declare const DragControls: ForwardRefComponent<DragControlsProps, THREE$2.Group>;
@@ -413,7 +413,7 @@ type KeyboardControlsEntry<T extends string = string> = {
413
413
  };
414
414
  type KeyboardControlsProps = {
415
415
  map: KeyboardControlsEntry[];
416
- children: React$1.ReactNode;
416
+ children: React.ReactNode;
417
417
  onChange?: (name: string, pressed: boolean, state: KeyboardControlsState) => void;
418
418
  domElement?: HTMLElement;
419
419
  };
@@ -422,7 +422,7 @@ declare function KeyboardControls({
422
422
  children,
423
423
  onChange,
424
424
  domElement
425
- }: KeyboardControlsProps): React$1.JSX.Element;
425
+ }: KeyboardControlsProps): React.JSX.Element;
426
426
  type Selector<T extends string = string> = (state: KeyboardControlsState<T>) => boolean;
427
427
  declare function useKeyboardControls<T extends string = string>(): [StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['subscribe'], StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['getState']];
428
428
  declare function useKeyboardControls<T extends string = string>(sel: Selector<T>): ReturnType<Selector<T>>;
@@ -444,8 +444,8 @@ type MotionPathProps = ThreeElements['group'] & {
444
444
  curves?: THREE$2.Curve<THREE$2.Vector3>[];
445
445
  debug?: boolean;
446
446
  debugColor?: THREE$2.ColorRepresentation;
447
- object?: React$1.RefObject<THREE$2.Object3D>;
448
- focus?: [x: number, y: number, z: number] | React$1.RefObject<THREE$2.Object3D>;
447
+ object?: React.RefObject<THREE$2.Object3D>;
448
+ focus?: [x: number, y: number, z: number] | React.RefObject<THREE$2.Object3D>;
449
449
  loop?: boolean;
450
450
  offset?: number;
451
451
  smooth?: boolean | number;
@@ -457,8 +457,8 @@ type MotionPathProps = ThreeElements['group'] & {
457
457
  type MotionState = {
458
458
  current: number;
459
459
  path: THREE$2.CurvePath<THREE$2.Vector3>;
460
- focus: React$1.RefObject<THREE$2.Object3D> | [x: number, y: number, z: number] | undefined;
461
- object: React$1.RefObject<THREE$2.Object3D>;
460
+ focus: React.RefObject<THREE$2.Object3D> | [x: number, y: number, z: number] | undefined;
461
+ object: React.RefObject<THREE$2.Object3D>;
462
462
  offset: number;
463
463
  point: THREE$2.Vector3;
464
464
  tangent: THREE$2.Vector3;
@@ -468,7 +468,7 @@ type MotionPathRef = THREE$2.Group & {
468
468
  motion: MotionState;
469
469
  };
470
470
  declare function useMotion(): MotionState;
471
- declare const MotionPathControls: React$1.ForwardRefExoticComponent<Omit<MotionPathProps, "ref"> & React$1.RefAttributes<MotionPathRef>>;
471
+ declare const MotionPathControls: React.ForwardRefExoticComponent<Omit<MotionPathProps, "ref"> & React.RefAttributes<MotionPathRef>>;
472
472
  //#endregion
473
473
  //#region src/core/Controls/OrbitControls/OrbitControls.d.ts
474
474
  type ExtractCallback<T, E extends string> = T extends {
@@ -514,7 +514,7 @@ type PresentationControlProps = {
514
514
  azimuth?: [number, number];
515
515
  damping?: number;
516
516
  enabled?: boolean;
517
- children?: React$1.ReactNode;
517
+ children?: React.ReactNode;
518
518
  domElement?: HTMLElement;
519
519
  };
520
520
  declare function PresentationControls({
@@ -530,7 +530,7 @@ declare function PresentationControls({
530
530
  polar,
531
531
  azimuth,
532
532
  damping
533
- }: PresentationControlProps): React$1.JSX.Element;
533
+ }: PresentationControlProps): React.JSX.Element;
534
534
  //#endregion
535
535
  //#region src/core/Controls/ScrollControls/ScrollControls.d.ts
536
536
  type ScrollControlsProps = {
@@ -543,8 +543,8 @@ type ScrollControlsProps = {
543
543
  maxSpeed?: number;
544
544
  prepend?: boolean;
545
545
  enabled?: boolean;
546
- style?: React$1.CSSProperties;
547
- children: React$1.ReactNode;
546
+ style?: React.CSSProperties;
547
+ children: React.ReactNode;
548
548
  };
549
549
  type ScrollControlsState = {
550
550
  el: HTMLDivElement;
@@ -573,16 +573,16 @@ declare function ScrollControls({
573
573
  prepend,
574
574
  style,
575
575
  children
576
- }: ScrollControlsProps): React$1.JSX.Element;
576
+ }: ScrollControlsProps): React.JSX.Element;
577
577
  interface ScrollPropsWithFalseHtml {
578
- children?: React$1.ReactNode;
578
+ children?: React.ReactNode;
579
579
  html?: false;
580
580
  style?: never;
581
581
  }
582
582
  interface ScrollPropsWithTrueHtml {
583
- children?: React$1.ReactNode;
583
+ children?: React.ReactNode;
584
584
  html: true;
585
- style?: React$1.CSSProperties;
585
+ style?: React.CSSProperties;
586
586
  }
587
587
  type ScrollProps = ScrollPropsWithFalseHtml | ScrollPropsWithTrueHtml;
588
588
  declare const Scroll: ForwardRefComponent<ScrollProps, THREE$2.Group & HTMLDivElement>;
@@ -629,7 +629,7 @@ type CloudState = {
629
629
  position: Vector3$3;
630
630
  volume: number;
631
631
  length: number;
632
- ref: React$1.RefObject<Group>;
632
+ ref: React.RefObject<Group>;
633
633
  speed: number;
634
634
  growth: number;
635
635
  opacity: number;
@@ -665,9 +665,9 @@ type CloudProps = Omit<ThreeElements['group'], 'ref'> & {
665
665
  opacity?: number;
666
666
  color?: ReactThreeFiber.Color;
667
667
  };
668
- declare const Clouds: React$1.ForwardRefExoticComponent<Omit<CloudsProps, "ref"> & React$1.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
669
- declare const CloudInstance: React$1.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React$1.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
670
- declare const Cloud: React$1.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React$1.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
668
+ declare const Clouds: React.ForwardRefExoticComponent<Omit<CloudsProps, "ref"> & React.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
669
+ declare const CloudInstance: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
670
+ declare const Cloud: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE$1.Object3DEventMap>>>;
671
671
  //#endregion
672
672
  //#region src/core/Geometry/CatmullRomLine/CatmullRomLine.d.ts
673
673
  type CatmullRomLineProps = Omit<LineProps$1, 'ref' | 'segments'> & {
@@ -675,7 +675,7 @@ type CatmullRomLineProps = Omit<LineProps$1, 'ref' | 'segments'> & {
675
675
  curveType?: 'centripetal' | 'chordal' | 'catmullrom';
676
676
  tension?: number;
677
677
  segments?: number;
678
- LineComponent?: React$1.ComponentType<LineProps$1>;
678
+ LineComponent?: React.ComponentType<LineProps$1>;
679
679
  };
680
680
  declare const CatmullRomLine: ForwardRefComponent<CatmullRomLineProps, Line2$1>;
681
681
  //#endregion
@@ -686,13 +686,13 @@ type CubicBezierLineProps = Omit<LineProps$1, 'points' | 'ref'> & {
686
686
  midA: Vector3$3 | [number, number, number];
687
687
  midB: Vector3$3 | [number, number, number];
688
688
  segments?: number;
689
- LineComponent?: React$1.ComponentType<LineProps$1>;
689
+ LineComponent?: React.ComponentType<LineProps$1>;
690
690
  };
691
691
  declare const CubicBezierLine: ForwardRefComponent<CubicBezierLineProps, Line2$1>;
692
692
  //#endregion
693
693
  //#region src/core/Geometry/CurveModifier/CurveModifier.d.ts
694
694
  interface CurveModifierProps {
695
- children: React$1.ReactElement<ThreeElements['mesh']>;
695
+ children: React.ReactElement<ThreeElements['mesh']>;
696
696
  curve?: THREE$2.Curve<THREE$2.Vector3>;
697
697
  }
698
698
  type CurveModifierRef = Flow;
@@ -701,12 +701,12 @@ declare const CurveModifier: ForwardRefComponent<CurveModifierProps, CurveModifi
701
701
  //#region src/core/Geometry/Decal/Decal.d.ts
702
702
  type DecalProps = Omit<FIBER.ThreeElements['mesh'], 'ref' | 'children'> & {
703
703
  debug?: boolean;
704
- mesh?: React$1.RefObject<THREE$2.Mesh>;
704
+ mesh?: React.RefObject<THREE$2.Mesh>;
705
705
  position?: FIBER.Vector3;
706
706
  rotation?: FIBER.Euler | number;
707
707
  scale?: FIBER.Vector3;
708
708
  map?: THREE$2.Texture;
709
- children?: React$1.ReactNode;
709
+ children?: React.ReactNode;
710
710
  polygonOffsetFactor?: number;
711
711
  depthTest?: boolean;
712
712
  };
@@ -714,7 +714,7 @@ declare const Decal: ForwardRefComponent<DecalProps, THREE$2.Mesh>;
714
714
  //#endregion
715
715
  //#region src/core/Geometry/Detailed/Detailed.d.ts
716
716
  type DetailedProps = Omit<ThreeElements['lOD'], 'ref'> & {
717
- children: React$1.ReactElement<Object3D$1>[];
717
+ children: React.ReactElement<Object3D$1>[];
718
718
  hysteresis?: number;
719
719
  distances: number[];
720
720
  };
@@ -727,7 +727,7 @@ interface EdgesProps {
727
727
  lineWidth?: number;
728
728
  color?: THREE$2.ColorRepresentation;
729
729
  scale?: number;
730
- LineComponent?: React$1.ComponentType<LineProps$1>;
730
+ LineComponent?: React.ComponentType<LineProps$1>;
731
731
  }
732
732
  interface EdgesRef {
733
733
  computeLineDistances: () => void;
@@ -747,8 +747,8 @@ type PointsInstancesProps = Omit<ThreeElements['points'], 'ref'> & {
747
747
  declare class PositionPoint extends THREE$2.Group {
748
748
  size: number;
749
749
  color: THREE$2.Color;
750
- instance: React$1.RefObject<THREE$2.Points | undefined>;
751
- instanceKey: React$1.RefObject<PositionPoint | undefined>;
750
+ instance: React.RefObject<THREE$2.Points | undefined>;
751
+ instanceKey: React.RefObject<PositionPoint | undefined>;
752
752
  constructor();
753
753
  get geometry(): THREE$2.BufferGeometry<THREE$2.NormalBufferAttributes, THREE$2.BufferGeometryEventMap> | undefined;
754
754
  raycast(raycaster: THREE$2.Raycaster, intersects: THREE$2.Intersection[]): void;
@@ -772,7 +772,7 @@ type QuadraticBezierLineProps = Omit<LineProps$1, 'points' | 'ref'> & {
772
772
  end: Vector3$3 | [number, number, number];
773
773
  mid?: Vector3$3 | [number, number, number];
774
774
  segments?: number;
775
- LineComponent?: React$1.ComponentType<LineProps$1>;
775
+ LineComponent?: React.ComponentType<LineProps$1>;
776
776
  };
777
777
  declare const QuadraticBezierLine: ForwardRefComponent<QuadraticBezierLineProps, QuadraticBezierLineRef>;
778
778
  //#endregion
@@ -858,7 +858,7 @@ type Text3DProps = Omit<ThreeElements['mesh'], 'ref'> & {
858
858
  bevelSegments?: number;
859
859
  smooth?: number;
860
860
  } & Omit<TextGeometryParameters, 'font'>;
861
- declare const Text3D: ForwardRefComponent<React$1.PropsWithChildren<Text3DProps & {
861
+ declare const Text3D: ForwardRefComponent<React.PropsWithChildren<Text3DProps & {
862
862
  letterSpacing?: number;
863
863
  lineHeight?: number;
864
864
  }>, THREE$2.Mesh>;
@@ -908,13 +908,13 @@ declare module '@react-three/fiber' {
908
908
  }
909
909
  }
910
910
  interface WireframeProps {
911
- geometry?: THREE$2.BufferGeometry | React$1.RefObject<THREE$2.BufferGeometry>;
911
+ geometry?: THREE$2.BufferGeometry | React.RefObject<THREE$2.BufferGeometry>;
912
912
  simplify?: boolean;
913
913
  }
914
914
  declare function Wireframe({
915
915
  geometry: customGeometry,
916
916
  ...props
917
- }: WireframeProps & WireframeMaterialProps$1): React$1.JSX.Element;
917
+ }: WireframeProps & WireframeMaterialProps$1): React.JSX.Element;
918
918
  //#endregion
919
919
  //#region src/core/Gizmos/gizmo/GizmoHelper.d.ts
920
920
  type GizmoHelperContext = {
@@ -949,7 +949,7 @@ type GenericProps = {
949
949
  onClick?: (e: ThreeEvent<MouseEvent>) => null;
950
950
  faces?: string[];
951
951
  };
952
- declare const GizmoViewcube: (props: GenericProps) => React$1.JSX.Element;
952
+ declare const GizmoViewcube: (props: GenericProps) => React.JSX.Element;
953
953
  //#endregion
954
954
  //#region src/core/Gizmos/gizmo/GizmoViewport.d.ts
955
955
  type GizmoViewportProps = ThreeElements['group'] & {
@@ -976,7 +976,7 @@ declare const GizmoViewport: ({
976
976
  labelColor,
977
977
  onClick,
978
978
  ...props
979
- }: GizmoViewportProps) => React$1.JSX.Element;
979
+ }: GizmoViewportProps) => React.JSX.Element;
980
980
  //#endregion
981
981
  //#region src/core/Gizmos/PivotControls/context.d.ts
982
982
  type OnDragStartProps = {
@@ -1019,14 +1019,14 @@ type PivotControlsProps = {
1019
1019
  userData?: {
1020
1020
  [key: string]: any;
1021
1021
  };
1022
- children?: React$1.ReactNode;
1023
- LineComponent?: React$1.ComponentType<LineProps$1>;
1022
+ children?: React.ReactNode;
1023
+ LineComponent?: React.ComponentType<LineProps$1>;
1024
1024
  };
1025
1025
  declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE$2.Group>;
1026
1026
  //#endregion
1027
1027
  //#region src/core/Gizmos/TransformControls/TransformControls.d.ts
1028
1028
  type TransformControlsProps = Omit<ThreeElement<typeof TransformControls$1>, 'ref' | 'args'> & Omit<ThreeElements['group'], 'ref'> & {
1029
- object?: THREE$2.Object3D | React$1.RefObject<THREE$2.Object3D>;
1029
+ object?: THREE$2.Object3D | React.RefObject<THREE$2.Object3D>;
1030
1030
  enabled?: boolean;
1031
1031
  axis?: string | null;
1032
1032
  domElement?: HTMLElement;
@@ -1039,7 +1039,7 @@ type TransformControlsProps = Omit<ThreeElement<typeof TransformControls$1>, 're
1039
1039
  showX?: boolean;
1040
1040
  showY?: boolean;
1041
1041
  showZ?: boolean;
1042
- children?: React$1.ReactElement<THREE$2.Object3D>;
1042
+ children?: React.ReactElement<THREE$2.Object3D>;
1043
1043
  camera?: THREE$2.Camera;
1044
1044
  onChange?: (e?: THREE$2.Event) => void;
1045
1045
  onMouseDown?: (e?: THREE$2.Event) => void;
@@ -1056,7 +1056,7 @@ type HelperType = Object3D$1 & {
1056
1056
  };
1057
1057
  type HelperConstructor = new (...args: any[]) => any;
1058
1058
  type HelperArgs<T> = T extends [infer _, ...infer R] ? R : never;
1059
- declare function useHelper<T extends HelperConstructor>(object3D: React$1.RefObject<Object3D$1> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React$1.RefObject<HelperType | null>;
1059
+ declare function useHelper<T extends HelperConstructor>(object3D: React.RefObject<Object3D$1> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React.RefObject<HelperType | null>;
1060
1060
  type HelperProps<T extends HelperConstructor> = {
1061
1061
  type: T;
1062
1062
  args?: HelperArgs<ConstructorParameters<T>>;
@@ -1064,7 +1064,7 @@ type HelperProps<T extends HelperConstructor> = {
1064
1064
  declare const Helper: <T extends HelperConstructor>({
1065
1065
  type: helperConstructor,
1066
1066
  args
1067
- }: HelperProps<T>) => React$1.JSX.Element;
1067
+ }: HelperProps<T>) => React.JSX.Element;
1068
1068
  //#endregion
1069
1069
  //#region src/core/Helpers/PointMaterial/PointMaterial.d.ts
1070
1070
  declare class PointMaterialImpl extends THREE$2.PointsMaterial {
@@ -1088,17 +1088,17 @@ declare module '@react-three/fiber' {
1088
1088
  }
1089
1089
  }
1090
1090
  type Api$1 = {
1091
- getParent: () => React$1.RefObject<InstancedMesh$1>;
1092
- subscribe: <T>(ref: React$1.RefObject<T>) => void;
1091
+ getParent: () => React.RefObject<InstancedMesh$1>;
1092
+ subscribe: <T>(ref: React.RefObject<T>) => void;
1093
1093
  };
1094
1094
  type InstancesProps = Omit<ThreeElements['instancedMesh'], 'ref' | 'args'> & {
1095
- context?: React$1.Context<Api$1>;
1095
+ context?: React.Context<Api$1>;
1096
1096
  range?: number;
1097
1097
  limit?: number;
1098
1098
  frames?: number;
1099
1099
  };
1100
1100
  type InstanceProps = Omit<ThreeElements['positionMesh'], 'ref'> & {
1101
- context?: React$1.Context<Api$1>;
1101
+ context?: React.Context<Api$1>;
1102
1102
  };
1103
1103
  type InstancedAttributeProps = Omit<ThreeElements['instancedBufferAttribute'], 'ref' | 'args'> & {
1104
1104
  name: string;
@@ -1112,25 +1112,25 @@ type InstancedMesh$1 = Omit<THREE$2.InstancedMesh, 'instanceMatrix' | 'instanceC
1112
1112
  };
1113
1113
  declare class PositionMesh extends THREE$2.Group {
1114
1114
  color: THREE$2.Color;
1115
- instance: React$1.RefObject<THREE$2.InstancedMesh | undefined>;
1116
- instanceKey: React$1.RefObject<PositionMesh | undefined>;
1115
+ instance: React.RefObject<THREE$2.InstancedMesh | undefined>;
1116
+ instanceKey: React.RefObject<PositionMesh | undefined>;
1117
1117
  constructor();
1118
1118
  get geometry(): THREE$2.BufferGeometry<THREE$2.NormalBufferAttributes, THREE$2.BufferGeometryEventMap> | undefined;
1119
1119
  raycast(raycaster: THREE$2.Raycaster, intersects: THREE$2.Intersection[]): void;
1120
1120
  }
1121
- declare const Instance: React$1.ForwardRefExoticComponent<Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
1122
- context?: React$1.Context<Api$1>;
1123
- } & React$1.RefAttributes<unknown>>;
1121
+ declare const Instance: React.ForwardRefExoticComponent<Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
1122
+ context?: React.Context<Api$1>;
1123
+ } & React.RefAttributes<unknown>>;
1124
1124
  declare const Instances: ForwardRefComponent<InstancesProps, THREE$2.InstancedMesh>;
1125
1125
  interface MergedProps extends Omit<InstancesProps, 'children'> {
1126
1126
  meshes: THREE$2.Mesh[] | Record<string, THREE$2.Object3D>;
1127
- children: (...instances: [React$1.FC<InstanceProps> & Record<string, React$1.FC<InstanceProps>>, ...React$1.FC<InstanceProps>[]]) => React$1.ReactNode;
1127
+ children: (...instances: [React.FC<InstanceProps> & Record<string, React.FC<InstanceProps>>, ...React.FC<InstanceProps>[]]) => React.ReactNode;
1128
1128
  }
1129
1129
  declare const Merged: ForwardRefComponent<MergedProps, THREE$2.Group>;
1130
- declare function createInstances<T = InstanceProps>(): readonly [React$1.ForwardRefExoticComponent<Omit<InstancesProps, "ref"> & React$1.RefAttributes<THREE$2.InstancedMesh<THREE$2.BufferGeometry<THREE$2.NormalBufferAttributes, THREE$2.BufferGeometryEventMap>, THREE$2.Material | THREE$2.Material[], THREE$2.InstancedMeshEventMap>>>, React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<T & Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
1131
- context?: React$1.Context<Api$1>;
1132
- }> & React$1.RefAttributes<PositionMesh & T>>];
1133
- declare const InstancedAttribute: React$1.ForwardRefExoticComponent<Omit<InstancedAttributeProps, "ref"> & React$1.RefAttributes<THREE$2.InstancedBufferAttribute>>;
1130
+ declare function createInstances<T = InstanceProps>(): readonly [React.ForwardRefExoticComponent<Omit<InstancesProps, "ref"> & React.RefAttributes<THREE$2.InstancedMesh<THREE$2.BufferGeometry<THREE$2.NormalBufferAttributes, THREE$2.BufferGeometryEventMap>, THREE$2.Material | THREE$2.Material[], THREE$2.InstancedMeshEventMap>>>, React.ForwardRefExoticComponent<React.PropsWithoutRef<T & Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
1131
+ context?: React.Context<Api$1>;
1132
+ }> & React.RefAttributes<PositionMesh & T>>];
1133
+ declare const InstancedAttribute: React.ForwardRefExoticComponent<Omit<InstancedAttributeProps, "ref"> & React.RefAttributes<THREE$2.InstancedBufferAttribute>>;
1134
1134
  //#endregion
1135
1135
  //#region src/core/Loaders/useSpriteLoader/useSpriteLoader.d.ts
1136
1136
  type Size = {
@@ -1193,7 +1193,7 @@ type AnimationEventData = {
1193
1193
  currentFrame: number;
1194
1194
  };
1195
1195
  type CommonProps<T, U, V> = Pick<T & U & V, keyof T & keyof U & keyof V>;
1196
- type CommonMeshProps = CommonProps<React$1.ComponentProps<'mesh'>, React$1.ComponentProps<typeof Instance>, React$1.ComponentProps<typeof Instances>>;
1196
+ type CommonMeshProps = CommonProps<React.ComponentProps<'mesh'>, React.ComponentProps<typeof Instance>, React.ComponentProps<typeof Instances>>;
1197
1197
  type SpriteAnimatorProps = {
1198
1198
  startFrame?: number;
1199
1199
  endFrame?: number;
@@ -1233,35 +1233,35 @@ type SpriteAnimatorState = {
1233
1233
  offset?: number;
1234
1234
  imageUrl?: string;
1235
1235
  hasEnded: boolean;
1236
- ref: React$1.Ref<THREE$2.Group>;
1236
+ ref: React.Ref<THREE$2.Group>;
1237
1237
  };
1238
1238
  declare function useSpriteAnimator(): SpriteAnimatorState | null;
1239
- declare const SpriteAnimator: React$1.ForwardRefExoticComponent<Omit<SpriteAnimatorProps, "ref"> & React$1.RefAttributes<THREE$2.Group<THREE$2.Object3DEventMap>>>;
1239
+ declare const SpriteAnimator: React.ForwardRefExoticComponent<Omit<SpriteAnimatorProps, "ref"> & React.RefAttributes<THREE$2.Group<THREE$2.Object3DEventMap>>>;
1240
1240
  //#endregion
1241
1241
  //#region src/core/Helpers/useAnimations/useAnimations.d.ts
1242
1242
  type Api<T extends AnimationClip> = {
1243
- ref: React$1.RefObject<Object3D$1 | undefined | null>;
1243
+ ref: React.RefObject<Object3D$1 | undefined | null>;
1244
1244
  clips: AnimationClip[];
1245
1245
  mixer: AnimationMixer;
1246
1246
  names: T['name'][];
1247
1247
  actions: { [key in T['name']]: AnimationAction | null };
1248
1248
  };
1249
- declare function useAnimations<T extends AnimationClip>(clips: T[], root?: React$1.RefObject<Object3D$1 | undefined | null> | Object3D$1): Api<T>;
1249
+ declare function useAnimations<T extends AnimationClip>(clips: T[], root?: React.RefObject<Object3D$1 | undefined | null> | Object3D$1): Api<T>;
1250
1250
  //#endregion
1251
1251
  //#region src/core/Helpers/useContextBridge/useContextBridge.d.ts
1252
- declare function useContextBridge(...contexts: Array<React$1.Context<any>>): ({
1252
+ declare function useContextBridge(...contexts: Array<React.Context<any>>): ({
1253
1253
  children
1254
1254
  }: {
1255
- children: React$1.ReactNode;
1256
- }) => React$1.JSX.Element;
1255
+ children: React.ReactNode;
1256
+ }) => React.JSX.Element;
1257
1257
  //#endregion
1258
1258
  //#region src/core/Helpers/Clone/Clone.d.ts
1259
1259
  type CloneProps = Omit<ThreeElements['group'], 'ref' | 'children'> & {
1260
1260
  object: THREE$2.Object3D | THREE$2.Object3D[];
1261
- children?: React$1.ReactNode;
1261
+ children?: React.ReactNode;
1262
1262
  deep?: boolean | 'materialsOnly' | 'geometriesOnly';
1263
1263
  keys?: string[];
1264
- inject?: ThreeElements['mesh'] | React$1.ReactNode | ((object: THREE$2.Object3D) => React$1.ReactNode);
1264
+ inject?: ThreeElements['mesh'] | React.ReactNode | ((object: THREE$2.Object3D) => React.ReactNode);
1265
1265
  castShadow?: boolean;
1266
1266
  receiveShadow?: boolean;
1267
1267
  isChild?: boolean;
@@ -1277,7 +1277,7 @@ declare const ComputedAttribute: ({
1277
1277
  compute,
1278
1278
  name,
1279
1279
  ...props
1280
- }: ComputedAttributeProps) => React$1.JSX.Element;
1280
+ }: ComputedAttributeProps) => React.JSX.Element;
1281
1281
  //#endregion
1282
1282
  //#region src/core/Helpers/Example/Example.d.ts
1283
1283
  type ExampleProps = {
@@ -1285,12 +1285,12 @@ type ExampleProps = {
1285
1285
  color?: Color;
1286
1286
  debug?: boolean;
1287
1287
  bevelSize?: number;
1288
- } & React$1.ComponentProps<'group'>;
1288
+ } & React.ComponentProps<'group'>;
1289
1289
  type ExampleApi = {
1290
1290
  incr: (x?: number) => void;
1291
1291
  decr: (x?: number) => void;
1292
1292
  };
1293
- declare const Example: React$1.ForwardRefExoticComponent<Omit<ExampleProps, "ref"> & React$1.RefAttributes<ExampleApi>>;
1293
+ declare const Example: React.ForwardRefExoticComponent<Omit<ExampleProps, "ref"> & React.RefAttributes<ExampleApi>>;
1294
1294
  //#endregion
1295
1295
  //#region src/core/Helpers/Sampler/Sampler.d.ts
1296
1296
  type SamplePayload = {
@@ -1304,8 +1304,8 @@ type TransformPayload = SamplePayload & {
1304
1304
  sampledMesh: Mesh$1;
1305
1305
  };
1306
1306
  type SamplerProps = Omit<ThreeElements['group'], 'ref'> & {
1307
- mesh?: React$1.RefObject<Mesh$1>;
1308
- instances?: React$1.RefObject<InstancedMesh>;
1307
+ mesh?: React.RefObject<Mesh$1>;
1308
+ instances?: React.RefObject<InstancedMesh>;
1309
1309
  weight?: string;
1310
1310
  transform?: TransformFn;
1311
1311
  count?: number;
@@ -1315,7 +1315,7 @@ interface useSurfaceSamplerProps {
1315
1315
  weight?: string;
1316
1316
  count?: number;
1317
1317
  }
1318
- declare function useSurfaceSampler(mesh: React$1.RefObject<Mesh$1>, count?: number, transform?: TransformFn, weight?: string, instanceMesh?: React$1.RefObject<InstancedMesh> | null): InstancedBufferAttribute;
1318
+ declare function useSurfaceSampler(mesh: React.RefObject<Mesh$1>, count?: number, transform?: TransformFn, weight?: string, instanceMesh?: React.RefObject<InstancedMesh> | null): InstancedBufferAttribute;
1319
1319
  declare function Sampler({
1320
1320
  children,
1321
1321
  weight,
@@ -1324,7 +1324,7 @@ declare function Sampler({
1324
1324
  mesh,
1325
1325
  count,
1326
1326
  ...props
1327
- }: SamplerProps): React$1.JSX.Element;
1327
+ }: SamplerProps): React.JSX.Element;
1328
1328
  //#endregion
1329
1329
  //#region src/core/Helpers/Svg/Svg.d.ts
1330
1330
  interface SvgProps extends Omit<ThreeElements['object3D'], 'ref'> {
@@ -1352,7 +1352,7 @@ interface CubeTextureOptions {
1352
1352
  path: string;
1353
1353
  }
1354
1354
  interface CubeTextureProps extends CubeTextureOptions {
1355
- children?: (texture: CubeTexture$1) => React$1.ReactNode;
1355
+ children?: (texture: CubeTexture$1) => React.ReactNode;
1356
1356
  files: string[];
1357
1357
  }
1358
1358
  declare function useCubeTexture(files: string[], {
@@ -1367,7 +1367,7 @@ declare function CubeTexture({
1367
1367
  children,
1368
1368
  files,
1369
1369
  ...options
1370
- }: CubeTextureProps): React$1.JSX.Element;
1370
+ }: CubeTextureProps): React.JSX.Element;
1371
1371
  //#endregion
1372
1372
  //#region src/core/Loaders/Loader/Loader.d.ts
1373
1373
  interface LoaderOptions {
@@ -1385,7 +1385,7 @@ declare function Loader({
1385
1385
  dataStyles,
1386
1386
  dataInterpolation,
1387
1387
  initialState
1388
- }: Partial<LoaderOptions>): React$1.JSX.Element | null;
1388
+ }: Partial<LoaderOptions>): React.JSX.Element | null;
1389
1389
  //#endregion
1390
1390
  //#region src/core/Loaders/Preload/Preload.d.ts
1391
1391
  type PreloadProps = {
@@ -1420,34 +1420,34 @@ declare function useVideoTexture(srcOrSrcObject: HTMLVideoElement['src' | 'srcOb
1420
1420
  type UseVideoTextureParams = Parameters<typeof useVideoTexture>;
1421
1421
  type VideoTexture = ReturnType<typeof useVideoTexture>;
1422
1422
  type VideoTextureProps = {
1423
- children?: (texture: VideoTexture) => React$1.ReactNode;
1423
+ children?: (texture: VideoTexture) => React.ReactNode;
1424
1424
  src: UseVideoTextureParams[0];
1425
1425
  } & UseVideoTextureParams[1];
1426
- declare const VideoTexture: React$1.ForwardRefExoticComponent<{
1427
- children?: (texture: VideoTexture) => React$1.ReactNode;
1426
+ declare const VideoTexture: React.ForwardRefExoticComponent<{
1427
+ children?: (texture: VideoTexture) => React.ReactNode;
1428
1428
  src: UseVideoTextureParams[0];
1429
1429
  } & {
1430
1430
  unsuspend?: keyof HTMLVideoElementEventMap;
1431
1431
  start?: boolean;
1432
1432
  hls?: Parameters<typeof getHls>[0];
1433
1433
  onVideoFrame?: VideoFrameRequestCallback;
1434
- } & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React$1.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1434
+ } & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1435
1435
  //#endregion
1436
1436
  //#region src/core/Textures/ScreenVideoTexture/ScreenVideoTexture.d.ts
1437
1437
  type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
1438
1438
  options?: DisplayMediaStreamOptions;
1439
1439
  };
1440
- declare const ScreenVideoTexture: React$1.ForwardRefExoticComponent<Omit<{
1441
- children?: (texture: THREE$2.VideoTexture<HTMLVideoElement>) => React$1.ReactNode;
1440
+ declare const ScreenVideoTexture: React.ForwardRefExoticComponent<Omit<{
1441
+ children?: (texture: THREE$2.VideoTexture<HTMLVideoElement>) => React.ReactNode;
1442
1442
  src: string | MediaProvider | null;
1443
1443
  } & {
1444
1444
  unsuspend?: keyof HTMLVideoElementEventMap;
1445
1445
  start?: boolean;
1446
- hls?: Parameters<(userConfig?: Partial<hls_js0.HlsConfig> | undefined) => Promise<hls_js0.default | null>>[0];
1446
+ hls?: Parameters<(userConfig?: Partial<hls_js1.HlsConfig> | undefined) => Promise<hls_js1.default | null>>[0];
1447
1447
  onVideoFrame?: VideoFrameRequestCallback;
1448
1448
  } & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
1449
1449
  options?: DisplayMediaStreamOptions;
1450
- } & React$1.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1450
+ } & React.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1451
1451
  //#endregion
1452
1452
  //#region src/core/Textures/TrailTexture/TrailTexture.d.ts
1453
1453
  type TrailConfig = {
@@ -1463,12 +1463,12 @@ type TrailConfig = {
1463
1463
  };
1464
1464
  declare function useTrailTexture(config?: Partial<TrailConfig>): [Texture$2, (ThreeEvent: any) => void];
1465
1465
  type TrailTextureProps = {
1466
- children?: (texture: ReturnType<typeof useTrailTexture>) => React$1.ReactNode;
1466
+ children?: (texture: ReturnType<typeof useTrailTexture>) => React.ReactNode;
1467
1467
  } & TrailConfig;
1468
1468
  declare const TrailTexture: ({
1469
1469
  children,
1470
1470
  ...config
1471
- }: TrailTextureProps) => React$1.JSX.Element;
1471
+ }: TrailTextureProps) => React.JSX.Element;
1472
1472
  //#endregion
1473
1473
  //#region src/core/Loaders/useFBX/useFBX.d.ts
1474
1474
  declare function useFBX(path: string): Group;
@@ -1481,7 +1481,7 @@ declare function Fbx({
1481
1481
  ...props
1482
1482
  }: {
1483
1483
  path: Parameters<typeof useFBX>[0];
1484
- } & Omit<React$1.ComponentProps<typeof Clone>, 'object'>): React$1.JSX.Element;
1484
+ } & Omit<React.ComponentProps<typeof Clone>, 'object'>): React.JSX.Element;
1485
1485
  //#endregion
1486
1486
  //#region src/core/Loaders/useGLTF/useGLTF.d.ts
1487
1487
  type Path = string | string[];
@@ -1500,7 +1500,7 @@ type GltfProps = Omit<CloneProps, 'object'> & {
1500
1500
  useMeshOpt?: UseMeshopt;
1501
1501
  extendLoader?: ExtendLoader;
1502
1502
  };
1503
- declare const Gltf: React$1.ForwardRefExoticComponent<Omit<GltfProps, "ref"> & React$1.RefAttributes<THREE$1.Group<THREE$1.Object3DEventMap>>>;
1503
+ declare const Gltf: React.ForwardRefExoticComponent<Omit<GltfProps, "ref"> & React.RefAttributes<THREE$1.Group<THREE$1.Object3DEventMap>>>;
1504
1504
  //#endregion
1505
1505
  //#region src/core/Loaders/useKTX2/useKTX2.d.ts
1506
1506
  declare function useKTX2<Url extends string[] | string | Record<string, string>>(input: Url, basisPath?: string): Url extends any[] ? Texture$2[] : Url extends object ? { [key in keyof Url]: Texture$2 } : Texture$2;
@@ -1513,10 +1513,10 @@ declare const Ktx2: ({
1513
1513
  input,
1514
1514
  basisPath
1515
1515
  }: {
1516
- children?: (texture: ReturnType<typeof useKTX2>) => React$1.ReactNode;
1516
+ children?: (texture: ReturnType<typeof useKTX2>) => React.ReactNode;
1517
1517
  input: Parameters<typeof useKTX2>[0];
1518
1518
  basisPath?: Parameters<typeof useKTX2>[1];
1519
- }) => React$1.JSX.Element;
1519
+ }) => React.JSX.Element;
1520
1520
  //#endregion
1521
1521
  //#region src/core/Loaders/useProgress/useProgress.d.ts
1522
1522
  type Data = {
@@ -1531,8 +1531,8 @@ declare const useProgress: zustand0.UseBoundStore<zustand0.StoreApi<Data>>;
1531
1531
  declare function Progress({
1532
1532
  children
1533
1533
  }: {
1534
- children?: (result: Data) => React$1.ReactNode;
1535
- }): React$1.JSX.Element;
1534
+ children?: (result: Data) => React.ReactNode;
1535
+ }): React.JSX.Element;
1536
1536
  //#endregion
1537
1537
  //#region src/core/Loaders/useTexture/useTexture.d.ts
1538
1538
  type MappedTextureType<T extends string | string[] | Record<string, string>> = T extends string[] ? Texture$2[] : T extends Record<string, string> ? { [K in keyof T]: Texture$2 } : Texture$2;
@@ -1547,26 +1547,26 @@ declare const Texture: ({
1547
1547
  input,
1548
1548
  onLoad
1549
1549
  }: {
1550
- children?: (texture: ReturnType<typeof useTexture>) => React$1.ReactNode;
1550
+ children?: (texture: ReturnType<typeof useTexture>) => React.ReactNode;
1551
1551
  input: Parameters<typeof useTexture>[0];
1552
1552
  onLoad?: Parameters<typeof useTexture>[1];
1553
- }) => React$1.JSX.Element;
1553
+ }) => React.JSX.Element;
1554
1554
  //#endregion
1555
1555
  //#region src/core/Textures/WebcamVideoTexture/WebcamVideoTexture.d.ts
1556
1556
  type WebcamVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
1557
1557
  constraints?: MediaStreamConstraints;
1558
1558
  };
1559
- declare const WebcamVideoTexture: React$1.ForwardRefExoticComponent<Omit<{
1560
- children?: (texture: THREE$2.VideoTexture<HTMLVideoElement>) => React$1.ReactNode;
1559
+ declare const WebcamVideoTexture: React.ForwardRefExoticComponent<Omit<{
1560
+ children?: (texture: THREE$2.VideoTexture<HTMLVideoElement>) => React.ReactNode;
1561
1561
  src: string | MediaProvider | null;
1562
1562
  } & {
1563
1563
  unsuspend?: keyof HTMLVideoElementEventMap;
1564
1564
  start?: boolean;
1565
- hls?: Parameters<(userConfig?: Partial<hls_js0.HlsConfig> | undefined) => Promise<hls_js0.default | null>>[0];
1565
+ hls?: Parameters<(userConfig?: Partial<hls_js1.HlsConfig> | undefined) => Promise<hls_js1.default | null>>[0];
1566
1566
  onVideoFrame?: VideoFrameRequestCallback;
1567
1567
  } & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
1568
1568
  constraints?: MediaStreamConstraints;
1569
- } & React$1.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1569
+ } & React.RefAttributes<THREE$2.VideoTexture<HTMLVideoElement>>>;
1570
1570
  //#endregion
1571
1571
  //#region src/core/Performance/AdaptiveDpr/AdaptiveDpr.d.ts
1572
1572
  declare function AdaptiveDpr({
@@ -1581,12 +1581,12 @@ declare function AdaptiveEvents(): null;
1581
1581
  //#region src/core/Performance/DetectGPU/DetectGPU.d.ts
1582
1582
  declare const useDetectGPU: (props?: GetGPUTier) => detect_gpu0.TierResult;
1583
1583
  type DetectGPUProps = {
1584
- children?: (result: ReturnType<typeof useDetectGPU>) => React$1.ReactNode;
1584
+ children?: (result: ReturnType<typeof useDetectGPU>) => React.ReactNode;
1585
1585
  } & Parameters<typeof useDetectGPU>[0];
1586
1586
  declare function DetectGPU({
1587
1587
  children,
1588
1588
  ...options
1589
- }: DetectGPUProps): React$1.JSX.Element;
1589
+ }: DetectGPUProps): React.JSX.Element;
1590
1590
  //#endregion
1591
1591
  //#region src/core/Performance/meshBounds/meshBounds.d.ts
1592
1592
  declare function meshBounds(raycaster: Raycaster, intersects: Intersection[]): void;
@@ -1608,7 +1608,7 @@ type PerformanceMonitorApi = {
1608
1608
  flipped: number;
1609
1609
  fallback: boolean;
1610
1610
  subscriptions: Map<Symbol, Partial<PerformanceMonitorHookApi>>;
1611
- subscribe: (ref: React$1.RefObject<Partial<PerformanceMonitorHookApi>>) => () => void;
1611
+ subscribe: (ref: React.RefObject<Partial<PerformanceMonitorHookApi>>) => () => void;
1612
1612
  };
1613
1613
  type PerformanceMonitorProps = {
1614
1614
  ms?: number;
@@ -1622,7 +1622,7 @@ type PerformanceMonitorProps = {
1622
1622
  onDecline?: (api: PerformanceMonitorApi) => void;
1623
1623
  onChange?: (api: PerformanceMonitorApi) => void;
1624
1624
  onFallback?: (api: PerformanceMonitorApi) => void;
1625
- children?: React$1.ReactNode;
1625
+ children?: React.ReactNode;
1626
1626
  };
1627
1627
  declare function PerformanceMonitor({
1628
1628
  iterations,
@@ -1637,7 +1637,7 @@ declare function PerformanceMonitor({
1637
1637
  onChange,
1638
1638
  onFallback,
1639
1639
  children
1640
- }: PerformanceMonitorProps): React$1.JSX.Element;
1640
+ }: PerformanceMonitorProps): React.JSX.Element;
1641
1641
  declare function usePerformanceMonitor({
1642
1642
  onIncline,
1643
1643
  onDecline,
@@ -1649,7 +1649,7 @@ declare function usePerformanceMonitor({
1649
1649
  type StatsProps = {
1650
1650
  showPanel?: number;
1651
1651
  className?: string;
1652
- parent?: React$1.RefObject<HTMLElement>;
1652
+ parent?: React.RefObject<HTMLElement>;
1653
1653
  };
1654
1654
  declare function Stats({
1655
1655
  showPanel,
@@ -1664,8 +1664,8 @@ type StatsGlProps = Partial<StatsOptions> & {
1664
1664
  clearStatsGlStyle?: boolean;
1665
1665
  showPanel?: number;
1666
1666
  className?: string;
1667
- parent?: React$1.RefObject<HTMLElement>;
1668
- ref?: React$1.RefObject<HTMLElement>;
1667
+ parent?: React.RefObject<HTMLElement>;
1668
+ ref?: React.RefObject<HTMLElement>;
1669
1669
  };
1670
1670
  declare const StatsGl: ForwardRefComponent<StatsGlProps, HTMLDivElement>;
1671
1671
  //#endregion
@@ -1677,24 +1677,24 @@ declare function useFBO(width?: number | FBOSettings, height?: number, settings?
1677
1677
  type UseFBOParams = Parameters<typeof useFBO>;
1678
1678
  type Fbo = ReturnType<typeof useFBO>;
1679
1679
  type FboProps = {
1680
- children?: (target: Fbo) => React$1.ReactNode;
1680
+ children?: (target: Fbo) => React.ReactNode;
1681
1681
  width?: UseFBOParams[0];
1682
1682
  height?: UseFBOParams[1];
1683
1683
  } & FBOSettings;
1684
- declare const Fbo: React$1.ForwardRefExoticComponent<{
1685
- children?: (target: Fbo) => React$1.ReactNode;
1684
+ declare const Fbo: React.ForwardRefExoticComponent<{
1685
+ children?: (target: Fbo) => React.ReactNode;
1686
1686
  width?: UseFBOParams[0];
1687
1687
  height?: UseFBOParams[1];
1688
1688
  } & {
1689
1689
  depth?: boolean;
1690
- } & THREE$2.RenderTargetOptions & React$1.RefAttributes<THREE$2.WebGLRenderTarget<THREE$2.Texture<unknown>>>>;
1690
+ } & THREE$2.RenderTargetOptions & React.RefAttributes<THREE$2.WebGLRenderTarget<THREE$2.Texture<unknown>>>>;
1691
1691
  //#endregion
1692
1692
  //#region src/core/Portal/Fisheye/Fisheye.d.ts
1693
1693
  type FisheyeProps = ThreeElements['mesh'] & {
1694
1694
  zoom?: number;
1695
1695
  segments?: number;
1696
1696
  resolution?: number;
1697
- children: React$1.ReactNode;
1697
+ children: React.ReactNode;
1698
1698
  renderPriority?: number;
1699
1699
  };
1700
1700
  declare function Fisheye({
@@ -1704,17 +1704,17 @@ declare function Fisheye({
1704
1704
  children,
1705
1705
  resolution,
1706
1706
  ...props
1707
- }: FisheyeProps): React$1.JSX.Element;
1707
+ }: FisheyeProps): React.JSX.Element;
1708
1708
  //#endregion
1709
1709
  //#region src/core/Portal/Hud/Hud.d.ts
1710
1710
  type HudProps = {
1711
- children: React$1.ReactNode;
1711
+ children: React.ReactNode;
1712
1712
  renderPriority?: number;
1713
1713
  };
1714
1714
  declare function Hud({
1715
1715
  children,
1716
1716
  renderPriority
1717
- }: HudProps): React$1.JSX.Element;
1717
+ }: HudProps): React.JSX.Element;
1718
1718
  //#endregion
1719
1719
  //#region src/core/Portal/Mask/Mask.d.ts
1720
1720
  type MaskProps = Omit<ThreeElements['mesh'], 'ref' | 'id'> & {
@@ -1726,7 +1726,7 @@ declare const Mask: ForwardRefComponent<MaskProps, THREE$2.Mesh>;
1726
1726
  declare function useMask(id: number, inverse?: boolean): {
1727
1727
  stencilWrite: boolean;
1728
1728
  stencilRef: number;
1729
- stencilFunc: 514 | 517;
1729
+ stencilFunc: 517 | 514;
1730
1730
  stencilFail: 7680;
1731
1731
  stencilZFail: 7680;
1732
1732
  stencilZPass: 7680;
@@ -1743,7 +1743,7 @@ type RenderCubeTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args' | 'r
1743
1743
  compute?: ComputeFunction;
1744
1744
  flip?: boolean;
1745
1745
  resolution?: number;
1746
- children: React$1.ReactNode;
1746
+ children: React.ReactNode;
1747
1747
  near?: number;
1748
1748
  far?: number;
1749
1749
  position?: ReactThreeFiber.Vector3;
@@ -1761,7 +1761,7 @@ type RenderCubeTextureApi = {
1761
1761
  declare const RenderCubeTexture: ForwardRefComponent<RenderCubeTextureProps, RenderCubeTextureApi>;
1762
1762
  //#endregion
1763
1763
  //#region src/core/Portal/useCustomRaycast/useCustomRaycast.d.ts
1764
- declare function useCustomRaycast(camera: Camera | React$1.RefObject<Camera>, props?: Partial<Raycaster>): (_: Raycaster, intersects: Intersection[]) => void;
1764
+ declare function useCustomRaycast(camera: Camera | React.RefObject<Camera>, props?: Partial<Raycaster>): (_: Raycaster, intersects: Intersection[]) => void;
1765
1765
  //#endregion
1766
1766
  //#region src/core/Portal/View/View.d.ts
1767
1767
  type CanvasSize = {
@@ -1774,26 +1774,26 @@ type ContainerProps = {
1774
1774
  visible: boolean;
1775
1775
  scene: THREE$2.Scene;
1776
1776
  index: number;
1777
- children?: React$1.ReactNode;
1777
+ children?: React.ReactNode;
1778
1778
  frames: number;
1779
- rect: React$1.RefObject<DOMRect>;
1780
- track?: React$1.RefObject<HTMLElement>;
1779
+ rect: React.RefObject<DOMRect>;
1780
+ track?: React.RefObject<HTMLElement>;
1781
1781
  canvasSize: CanvasSize;
1782
1782
  };
1783
1783
  type ViewProps = {
1784
1784
  as?: string;
1785
1785
  id?: string;
1786
1786
  className?: string;
1787
- style?: React$1.CSSProperties;
1787
+ style?: React.CSSProperties;
1788
1788
  visible?: boolean;
1789
1789
  index?: number;
1790
1790
  frames?: number;
1791
- children?: React$1.ReactNode;
1792
- track?: React$1.RefObject<HTMLElement>;
1791
+ children?: React.ReactNode;
1792
+ track?: React.RefObject<HTMLElement>;
1793
1793
  };
1794
1794
  type ViewportProps = {
1795
- Port: () => React$1.JSX.Element;
1796
- } & React$1.ForwardRefExoticComponent<ViewProps & React$1.RefAttributes<HTMLElement | THREE$2.Group>>;
1795
+ Port: () => React.JSX.Element;
1796
+ } & React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLElement | THREE$2.Group>>;
1797
1797
  declare const View: ViewportProps;
1798
1798
  //#endregion
1799
1799
  //#region src/core/Staging/Backdrop/Backdrop.d.ts
@@ -1801,7 +1801,7 @@ type BackdropProps = ThreeElements['group'] & {
1801
1801
  floor?: number;
1802
1802
  segments?: number;
1803
1803
  receiveShadow?: boolean;
1804
- children?: React$1.ReactNode;
1804
+ children?: React.ReactNode;
1805
1805
  };
1806
1806
  declare function Backdrop({
1807
1807
  children,
@@ -1815,7 +1815,7 @@ declare function Backdrop({
1815
1815
  floor?: number | undefined;
1816
1816
  segments?: number | undefined;
1817
1817
  receiveShadow: any;
1818
- }): React$1.JSX.Element;
1818
+ }): React.JSX.Element;
1819
1819
  //#endregion
1820
1820
  //#region src/core/Staging/BBAnchor/BBAnchor.d.ts
1821
1821
  type BBAnchorProps = ThreeElements['group'] & {
@@ -1824,7 +1824,7 @@ type BBAnchorProps = ThreeElements['group'] & {
1824
1824
  declare const BBAnchor: ({
1825
1825
  anchor,
1826
1826
  ...props
1827
- }: BBAnchorProps) => React$1.JSX.Element;
1827
+ }: BBAnchorProps) => React.JSX.Element;
1828
1828
  //#endregion
1829
1829
  //#region src/core/Staging/Billboard/Billboard.d.ts
1830
1830
  type BillboardProps = Omit<ThreeElements['group'], 'ref'> & {
@@ -1882,7 +1882,7 @@ declare function Bounds({
1882
1882
  clip,
1883
1883
  interpolateFunc,
1884
1884
  onFit
1885
- }: BoundsProps): React$1.JSX.Element;
1885
+ }: BoundsProps): React.JSX.Element;
1886
1886
  declare function useBounds(): BoundsApi;
1887
1887
  //#endregion
1888
1888
  //#region src/core/Staging/Center/Center.d.ts
@@ -1956,7 +1956,7 @@ type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'pre
1956
1956
  //#endregion
1957
1957
  //#region src/core/Staging/Environment/Environment.d.ts
1958
1958
  type EnvironmentProps = {
1959
- children?: React$1.ReactNode;
1959
+ children?: React.ReactNode;
1960
1960
  frames?: number;
1961
1961
  near?: number;
1962
1962
  far?: number;
@@ -1970,7 +1970,7 @@ type EnvironmentProps = {
1970
1970
  environmentRotation?: Euler;
1971
1971
  map?: Texture$2;
1972
1972
  preset?: PresetsType;
1973
- scene?: Scene$1 | React$1.RefObject<Scene$1>;
1973
+ scene?: Scene$1 | React.RefObject<Scene$1>;
1974
1974
  ground?: boolean | {
1975
1975
  radius?: number;
1976
1976
  height?: number;
@@ -2013,13 +2013,13 @@ declare function EnvironmentPortal({
2013
2013
  path,
2014
2014
  preset,
2015
2015
  extensions
2016
- }: EnvironmentProps): React$1.JSX.Element;
2016
+ }: EnvironmentProps): React.JSX.Element;
2017
2017
  declare module '@react-three/fiber' {
2018
2018
  interface ThreeElements {
2019
2019
  groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
2020
2020
  }
2021
2021
  }
2022
- declare function Environment(props: EnvironmentProps): React$1.JSX.Element;
2022
+ declare function Environment(props: EnvironmentProps): React.JSX.Element;
2023
2023
  //#endregion
2024
2024
  //#region src/core/Staging/Float/Float.d.ts
2025
2025
  type FloatProps = Omit<ThreeElements['group'], 'ref'> & {
@@ -2027,7 +2027,7 @@ type FloatProps = Omit<ThreeElements['group'], 'ref'> & {
2027
2027
  speed?: number;
2028
2028
  rotationIntensity?: number;
2029
2029
  floatIntensity?: number;
2030
- children?: React$1.ReactNode;
2030
+ children?: React.ReactNode;
2031
2031
  floatingRange?: [number?, number?];
2032
2032
  autoInvalidate?: boolean;
2033
2033
  };
@@ -2055,7 +2055,7 @@ type ResizeProps = Omit<ThreeElements['group'], 'ref'> & {
2055
2055
  box3?: THREE$2.Box3;
2056
2056
  precise?: boolean;
2057
2057
  };
2058
- declare const Resize: React$1.ForwardRefExoticComponent<Omit<ResizeProps, "ref"> & React$1.RefAttributes<THREE$2.Group<THREE$2.Object3DEventMap>>>;
2058
+ declare const Resize: React.ForwardRefExoticComponent<Omit<ResizeProps, "ref"> & React.RefAttributes<THREE$2.Group<THREE$2.Object3DEventMap>>>;
2059
2059
  //#endregion
2060
2060
  //#region src/core/Staging/ScreenSizer/ScreenSizer.d.ts
2061
2061
  type ScreenSizerProps = Omit<ThreeElements['object3D'], 'ref'> & {
@@ -2116,7 +2116,7 @@ declare function Stage({
2116
2116
  environment,
2117
2117
  preset,
2118
2118
  ...props
2119
- }: StageProps): React$1.JSX.Element;
2119
+ }: StageProps): React.JSX.Element;
2120
2120
  //#endregion
2121
2121
  //#region src/core/Staging/MatcapTexture/MatcapTexture.d.ts
2122
2122
  declare function useMatcapTexture(id?: number | string, format?: number, onLoad?: (texture: Texture$2 | Texture$2[]) => void): [Texture$2, string, number];
@@ -2126,11 +2126,11 @@ declare const MatcapTexture: ({
2126
2126
  format,
2127
2127
  onLoad
2128
2128
  }: {
2129
- children?: (texture: ReturnType<typeof useMatcapTexture>) => React$1.ReactNode;
2129
+ children?: (texture: ReturnType<typeof useMatcapTexture>) => React.ReactNode;
2130
2130
  id?: Parameters<typeof useMatcapTexture>[0];
2131
2131
  format?: Parameters<typeof useMatcapTexture>[1];
2132
2132
  onLoad?: Parameters<typeof useMatcapTexture>[2];
2133
- }) => React$1.JSX.Element;
2133
+ }) => React.JSX.Element;
2134
2134
  //#endregion
2135
2135
  //#region src/core/Textures/NormalTexture/NormalTexture.d.ts
2136
2136
  type Settings$1 = {
@@ -2145,10 +2145,10 @@ declare const NormalTexture: ({
2145
2145
  onLoad,
2146
2146
  ...settings
2147
2147
  }: {
2148
- children?: (texture: ReturnType<typeof useNormalTexture>) => React$1.ReactNode;
2148
+ children?: (texture: ReturnType<typeof useNormalTexture>) => React.ReactNode;
2149
2149
  id?: Parameters<typeof useNormalTexture>[0];
2150
2150
  onLoad?: Parameters<typeof useNormalTexture>[2];
2151
- } & Settings$1) => React$1.JSX.Element;
2151
+ } & Settings$1) => React.JSX.Element;
2152
2152
  //#endregion
2153
2153
  //#region src/core/UI/CycleRaycast/CycleRaycast.d.ts
2154
2154
  type CycleRaycastProps = {
@@ -2156,7 +2156,7 @@ type CycleRaycastProps = {
2156
2156
  preventDefault?: boolean;
2157
2157
  scroll?: boolean;
2158
2158
  keyCode?: number;
2159
- portal?: React$1.RefObject<HTMLElement>;
2159
+ portal?: React.RefObject<HTMLElement>;
2160
2160
  };
2161
2161
  declare function CycleRaycast({
2162
2162
  onChanged,
@@ -2173,12 +2173,12 @@ declare function defaultCalculatePosition(el: Object3D$1, camera: Camera, size:
2173
2173
  }): number[];
2174
2174
  type CalculatePosition = typeof defaultCalculatePosition;
2175
2175
  type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
2176
- interface HtmlProps extends Omit<Assign<React$1.HTMLAttributes<HTMLDivElement>, ThreeElements['group']>, 'ref'> {
2176
+ interface HtmlProps extends Omit<Assign<React.HTMLAttributes<HTMLDivElement>, ThreeElements['group']>, 'ref'> {
2177
2177
  prepend?: boolean;
2178
2178
  center?: boolean;
2179
2179
  fullscreen?: boolean;
2180
2180
  eps?: number;
2181
- portal?: React$1.RefObject<HTMLElement>;
2181
+ portal?: React.RefObject<HTMLElement>;
2182
2182
  distanceFactor?: number;
2183
2183
  sprite?: boolean;
2184
2184
  transform?: boolean;
@@ -2187,10 +2187,10 @@ interface HtmlProps extends Omit<Assign<React$1.HTMLAttributes<HTMLDivElement>,
2187
2187
  as?: string;
2188
2188
  wrapperClass?: string;
2189
2189
  pointerEvents?: PointerEventsProperties;
2190
- occlude?: React$1.RefObject<Object3D$1>[] | boolean | 'raycast' | 'blending';
2190
+ occlude?: React.RefObject<Object3D$1>[] | boolean | 'raycast' | 'blending';
2191
2191
  onOcclude?: (hidden: boolean) => void;
2192
- material?: React$1.ReactNode;
2193
- geometry?: React$1.ReactNode;
2192
+ material?: React.ReactNode;
2193
+ geometry?: React.ReactNode;
2194
2194
  castShadow?: boolean;
2195
2195
  receiveShadow?: boolean;
2196
2196
  }
@@ -2202,7 +2202,7 @@ declare function useAspect(width: number, height: number, factor?: number): [num
2202
2202
  declare function useCursor(hovered: boolean, onPointerOver?: string, onPointerOut?: string, container?: HTMLElement): void;
2203
2203
  //#endregion
2204
2204
  //#region src/core/UI/useIntersect/useIntersect.d.ts
2205
- declare function useIntersect<T extends Object3D$1>(onChange: (visible: boolean) => void): React$1.RefObject<T>;
2205
+ declare function useIntersect<T extends Object3D$1>(onChange: (visible: boolean) => void): React.RefObject<T>;
2206
2206
  //#endregion
2207
2207
  //#region src/core/UI/ScreenSpace/ScreenSpace.d.ts
2208
2208
  type ScreenSpaceProps = Omit<ThreeElements['group'], 'ref'> & {
@@ -2230,7 +2230,7 @@ declare function Select({
2230
2230
  backgroundColor,
2231
2231
  filter: customFilter,
2232
2232
  ...props
2233
- }: SelectProps): React$1.JSX.Element;
2233
+ }: SelectProps): React.JSX.Element;
2234
2234
  declare function useSelect(): THREE$2.Object3D[];
2235
2235
  //#endregion
2236
2236
  //#region src/webgpu/Geometry/Line/Line.d.ts
@@ -2251,7 +2251,7 @@ type SegmentsProps = {
2251
2251
  lineWidth?: number;
2252
2252
  linewidth?: number;
2253
2253
  dashed?: boolean;
2254
- children: React$1.ReactNode;
2254
+ children: React.ReactNode;
2255
2255
  };
2256
2256
  type SegmentProps = Omit<ThreeElements['segmentObject'], 'ref' | 'start' | 'end' | 'color'> & {
2257
2257
  start: ReactThreeFiber.Vector3;
@@ -2310,7 +2310,7 @@ declare module '@react-three/fiber' {
2310
2310
  softShadowMaterial: ThreeElements['shaderMaterial'] & SoftShadowMaterialProps;
2311
2311
  }
2312
2312
  }
2313
- declare const accumulativeContext: React$1.Context<AccumulativeContext>;
2313
+ declare const accumulativeContext: React.Context<AccumulativeContext>;
2314
2314
  declare const AccumulativeShadows: ForwardRefComponent<AccumulativeShadowsProps, AccumulativeContext>;
2315
2315
  type RandomizedLightProps = Omit<ThreeElements['group'], 'ref'> & {
2316
2316
  frames?: number;
@@ -2383,7 +2383,7 @@ type CausticsProps = Omit<ThreeElements['group'], 'ref'> & {
2383
2383
  intensity?: number;
2384
2384
  color?: ReactThreeFiber.Color;
2385
2385
  resolution?: number;
2386
- lightSource?: [x: number, y: number, z: number] | React$1.RefObject<THREE.Object3D>;
2386
+ lightSource?: [x: number, y: number, z: number] | React.RefObject<THREE.Object3D>;
2387
2387
  };
2388
2388
  declare class CausticsProjectionMaterial extends MeshBasicNodeMaterial {
2389
2389
  private _causticsTexture;
@@ -2548,7 +2548,7 @@ declare function GradientTexture({
2548
2548
  innerCircleRadius,
2549
2549
  outerCircleRadius,
2550
2550
  ...props
2551
- }: GradientTextureProps): React$1.JSX.Element;
2551
+ }: GradientTextureProps): React.JSX.Element;
2552
2552
  //#endregion
2553
2553
  //#region src/webgpu/UI/Image/Image.d.ts
2554
2554
  type ImageProps = Omit<ThreeElements['mesh'], 'scale'> & {
@@ -2608,7 +2608,7 @@ type PortalProps = Omit<ThreeElements['meshBasicMaterial'], 'ref'> & {
2608
2608
  eventPriority?: number;
2609
2609
  renderPriority?: number;
2610
2610
  events?: boolean;
2611
- children?: React$1.ReactNode;
2611
+ children?: React.ReactNode;
2612
2612
  };
2613
2613
  declare class PortalMaterialImpl extends MeshBasicNodeMaterial {
2614
2614
  private _blur;
@@ -2892,7 +2892,7 @@ declare function Outlines({
2892
2892
  angle,
2893
2893
  clippingPlanes,
2894
2894
  ...props
2895
- }: OutlinesProps): React$1.JSX.Element;
2895
+ }: OutlinesProps): React.JSX.Element;
2896
2896
  //#endregion
2897
2897
  //#region src/webgpu/Staging/SoftShadows/SoftShadows.d.ts
2898
2898
  type SoftShadowsProps = {
@@ -3108,7 +3108,7 @@ type SpotLightProps = Omit<ThreeElements['spotLight'], 'ref'> & {
3108
3108
  volumetric?: boolean;
3109
3109
  debug?: boolean;
3110
3110
  };
3111
- declare const SpotLight: ForwardRefComponent<React$1.PropsWithChildren<SpotLightProps>, SpotLight$1>;
3111
+ declare const SpotLight: ForwardRefComponent<React.PropsWithChildren<SpotLightProps>, SpotLight$1>;
3112
3112
  //#endregion
3113
3113
  //#region src/webgpu/Staging/Stars/Stars.d.ts
3114
3114
  declare module '@react-three/fiber' {
@@ -3156,10 +3156,10 @@ type Settings = {
3156
3156
  type TrailProps = {
3157
3157
  color?: ColorRepresentation;
3158
3158
  attenuation?: (t: number) => number;
3159
- target?: React$1.RefObject<Object3D>;
3159
+ target?: React.RefObject<Object3D>;
3160
3160
  } & Partial<Settings>;
3161
- declare function useTrail(target: Object3D, settings: Partial<Settings>, pointCount: number): React$1.RefObject<Float32Array>;
3162
- declare const Trail: ForwardRefComponent<React$1.PropsWithChildren<TrailProps>, Line2>;
3161
+ declare function useTrail(target: Object3D, settings: Partial<Settings>, pointCount: number): React.RefObject<Float32Array>;
3162
+ declare const Trail: ForwardRefComponent<React.PropsWithChildren<TrailProps>, Line2>;
3163
3163
  //#endregion
3164
3164
  //#region src/native/index.d.ts
3165
3165
  declare const Html: () => never;