import type { SplatClip, SplatClipFormat, SplatClipLoadOptions } from './splat-clip'; /** * Options of {@link loadSplatClip}. * * @experimental */ export interface LoadSplatClipOptions extends SplatClipLoadOptions { /** * `'auto'` (default) picks the format from the URL: an `.asog` is an * Animated SOG clip, and a `.json` is read and accepted when it is a * Faltwerk scene file. Name the format for a URL that does not say what it * is (an API endpoint, a blob URL). */ format?: 'auto' | SplatClipFormat; } /** * Loads a 4D (time-varying) splat clip in any format vlam reads, ready to * play through a `SplatClipMesh`. The format comes from `options.format`, or * else from the URL (see {@link LoadSplatClipOptions.format}). * * @example * ```ts * import { loadSplatClip, SplatClipMesh } from '@voluma/vlam/dynamic'; * * const clip = await loadSplatClip(url, { * onProgress: ({ message }) => (status.textContent = message), * }); * const mesh = new SplatClipMesh(clip, { renderer }); * ``` * * @throws {Error} when the URL is not a clip format vlam reads. * @experimental The API may change in a minor release. */ export declare function loadSplatClip(url: URL | string, options?: LoadSplatClipOptions): Promise;