import { default as React, PropsWithChildren } from 'react'; import { Model, mujoco, Simulation, State } from '../../mujoco-wasm'; export declare const MuJoCoModuleContext: React.Context; export type MuJoCoModuleProviderProps = PropsWithChildren<{}>; export declare const MuJoCoModuleProvider: ({ children, }: MuJoCoModuleProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const useMuJoCoModule: () => mujoco | null; export type MuJoCoProviderProps = PropsWithChildren<{ src: string; workDir?: string; assets?: string[]; }>; export type ResetFnArgs = { callback: () => void; }; export type ResetFn = (args: ResetFnArgs) => void; export type StepFn = (args: { nSteps: number; callback: () => void; }) => void; export interface MuJoCoReturnType { sim: Simulation | null; model: Model | null; dt: number | null; state: State | null; mujoco: mujoco; } /** * Provides the properties required to configure a MuJoCoProvider component. * * This type includes the required `src` property specifying the main file or entry point for MuJoCo simulation * and other optional configuration properties to customize the provider's behavior. The assets and assetIndex * differ with assetIndex is a dictionary, assets is a list. * * When updating the MuJoCo component quickly, you can redact the asset list/index to make transmission faster. * We enable this by only updating the ModelProvider when either the asset list/index is non-empty. To remove * the MuJoCo component from memory, just remove the component. We can make model creation less expensive using * the hide flag (future releases). * * **Note**: keys are the file paths, values are the urls. * * Properties: * - `src`: The source path or URL to the MuJoCo model (required). * - `workDir`: The directory where temporary or working files can be stored (optional). * - `assets`: An array of additional asset file paths or URLs to be included in the provider (optional). */ export declare function MuJoCoProvider({ src, workDir, assets, children, ...props }: MuJoCoProviderProps): import("react/jsx-runtime").JSX.Element; export declare const useMuJoCo: () => MuJoCoReturnType;