import { DefaultLoaderUI } from '@zappar/zappar-threejs'; import { Object3DNode } from '@react-three/fiber'; /** Elements available for styling. */ export interface LoaderStyle { /** The base container of the loader. */ container?: Partial; /** The inner container of the loader. */ inner?: Partial; /** The title of the loader. */ title?: Partial; /** The progress bar of the loader. */ progress?: Partial; /** The value of the progress bar. */ progressValue?: Partial; } declare module '@react-three/fiber' { interface ThreeElements { loader: Object3DNode; } } export type LoaderProps = { /** Style options for the loader UI elements */ style?: LoaderStyle; /** Callback function that's called when loading is complete */ onLoad?: () => void; } & JSX.IntrinsicElements['div']; /** * Creates a THREE.DefaultLoadingManager which is applied to all assets that can be loaded. * @see https://docs.zap.works/universal-ar/web-libraries/threejs/loading-manager/ */ declare function Loader({ style, onLoad }: LoaderProps): null; export default Loader;