import { UnityConfig, UnityConfig as UnityConfig$1, UnityInstance } from "react-unity-webgl"; import { UnityProps } from "react-unity-webgl/distribution/types/unity-props"; import { UnityMetricsInfo } from "react-unity-webgl/distribution/types/unity-metrics-info"; import { UnityProvider } from "react-unity-webgl/distribution/types/unity-provider"; import { UnityContext as UnityContext$1 } from "react-unity-webgl/distribution/types/unity-context"; //#region src/webgl-compat/types.d.ts type ReactUnityEventParameter = string | number | boolean | null | undefined | void; type EventCallback = (...parameters: any[]) => ReactUnityEventParameter; type EventSystemHook = { readonly on: (eventName: string, callback: EventCallback) => void; readonly addEventListener: (eventName: string, callback: EventCallback) => void; readonly removeEventListener: (eventName: string, callback?: EventCallback) => void; readonly removeAllEventListeners: () => void; readonly dispatchEvent: (eventName: string, ...parameters: any) => void; readonly onMount: () => () => void; }; type UnityContextType = UnityContext$1 & EventSystemHook & { unityConfig: UnityConfig$1; unityInstance: UnityInstance | null; htmlCanvasElement: any | undefined | null; send: (gameObjectName: string, methodName: string, parameter?: ReactUnityEventParameter) => void; setFullscreen: (enabled: boolean) => void; quitUnityInstance: () => Promise; UNSAFE__detachAndUnloadImmediate: () => Promise; }; //#endregion //#region src/webgl-compat/use-unity-context.d.ts declare const useUnityContext: (unityConfig: UnityConfig$1) => UnityContextType; declare class UnityContext implements UnityContextType { constructor(unityConfig: UnityConfig$1); addEventListener: ((eventName: string, callback: (...parameters: ReactUnityEventParameter[]) => ReactUnityEventParameter) => void) & ((eventName: string, callback: EventCallback) => void); removeEventListener: ((eventName: string, callback: (...parameters: ReactUnityEventParameter[]) => ReactUnityEventParameter) => void) & ((eventName: string, callback?: EventCallback) => void); unityProvider: UnityProvider; loadingProgression: number; isLoaded: boolean; initialisationError: Error; UNSAFE__unityInstance: UnityInstance; requestFullscreen: (enabled: boolean) => void; sendMessage: (gameObjectName: string, methodName: string, parameter?: ReactUnityEventParameter) => void; takeScreenshot: (dataType?: string, quality?: number) => string; requestPointerLock: () => void; getMetricsInfo: () => UnityMetricsInfo | undefined; unload: () => Promise; UNSAFE__detachAndUnloadImmediate: () => Promise; on: (eventName: string, callback: EventCallback) => void; removeAllEventListeners: () => void; dispatchEvent: (eventName: string, ...parameters: any) => void; onMount: () => () => void; unityConfig: UnityConfig$1; unityInstance: UnityInstance; htmlCanvasElement: any; send: (gameObjectName: string, methodName: string, parameter?: ReactUnityEventParameter) => void; setFullscreen: (enabled: boolean) => void; quitUnityInstance: () => Promise; } //#endregion //#region src/webgl-compat/index.d.ts type WebGLContextAttributes = NonNullable; declare const Unity: import("react").ForwardRefExoticComponent & Pick & import("react").CanvasHTMLAttributes, "className" | "id" | "style" | "tabIndex"> & { unityProvider: import("react-unity-webgl/distribution/types/unity-provider").UnityProvider; } & import("react").RefAttributes>>; //#endregion export { type UnityConfig as IUnityConfig, type UnityConfig, Unity, UnityContext, type UnityProps, type WebGLContextAttributes, useUnityContext }; //# sourceMappingURL=webgl-compat.d.ts.map