/** * Original code by PMNDRS * Source: https://github.com/pmndrs/react-three-rapier * License: MIT License (or specify the appropriate license) * * Creates a proxy that will create a singleton instance of the given class * when a property is accessed, and not before. * * @returns A proxy and a reset function, so that the instance can created again */ export declare function createSingletonProxy SingletonClass = () => SingletonClass>( /** * A function that returns a new instance of the class */ createInstance: CreationFn): { proxy: SingletonClass; reset: () => void; };