import { type AsogData } from './parse-asog'; /** The temporal opacity cut: `weight = max((γ − 0.05) / (1 − 0.05), 0)`. */ export declare const ASOG_TEMPORAL_THRESHOLD = 0.05; /** Half-width of a splat's visible life in σ: where γ reaches the 0.05 cut. */ export declare const ASOG_LIFE_SIGMAS: number; /** Temporal weight of a dynamic splat `dt` seconds from its centre time. */ export declare function asogTemporalWeight(dt: number, sigma: number): number; /** * Weight of clip `c` at global time `t`: 0 outside its active range, * smoothstep fades outside its core range, else 1. */ export declare function asogClipWeight(clips: ArrayLike, c: number, t: number): number; /** Clip-local time of clip `c` at global time `t`. */ export declare function asogClipLocalTime(clips: ArrayLike, c: number, t: number): number; /** * Evaluates splat `i` at clip-local time `t`. Writes its centre to * `out[0..2]` and the motion's rotation `q(w)` to `out[3..6]` as x y z w, * which pre-multiplies the splat's own rotation. A static splat, or one * invisible at `t`, keeps its canonical centre and an identity rotation. * * @returns the temporal weight (1 for a static splat, 0 when invisible). */ export declare function evaluateAsogSplat(motion: Float32Array, centers: Float32Array, i: number, t: number, out: Float64Array | Float32Array | number[]): number; /** * Output buffers of {@link evaluateAsogFrame}, sized for every splat. * * @experimental */ export interface AsogFrameBuffers { positions: Float32Array; colors: Uint8Array; covariances: Float32Array; } /** Fresh {@link AsogFrameBuffers} for `count` splats. */ export declare function createAsogFrameBuffers(count: number): AsogFrameBuffers; /** * Evaluates every splat at global time `t` into `buffers`, splat `i` in * slot `i`; an invisible splat gets opacity 0. With `compact`, only visible * splats are written, packed from slot 0, and `sources` (when given) * receives the splat index of each written slot. * * With `keepInvisible`, an invisible splat's slot gets only its opacity * (0); its position and covariance stay as the buffers hold them. Playback * passes it for buffers that hold an earlier frame of the same clip, or the * canonical pose ({@link writeAsogCanonical}), in every slot: most splats are * invisible at any one time, and this skips their pose entirely. * * @returns `count`, the slots written, and `alive`, the visible splats. * @experimental */ export declare function evaluateAsogFrame(data: Pick, t: number, buffers: AsogFrameBuffers, options?: { compact?: boolean; sources?: Uint32Array; keepInvisible?: boolean; }): { count: number; alive: number; }; /** * Writes every splat in its canonical (unmoved) pose with its own opacity: * what the GPU path uploads once, its modifier moving and fading it. * * @experimental */ export declare function writeAsogCanonical(data: Pick, buffers: AsogFrameBuffers): void; /** * A box around every centre a splat of `data` takes while visible: the * canonical centres, and each dynamic splat sampled at 33 times across its * visible life (`μ ± 2.45σ`), padded by 1 % of the box's size for the path * between samples. * * Sampling is skipped for a splat that cannot grow the box: its motion is a * screw about an axis through its anchor `a`, a rotation (which keeps * `|x − a|`) plus a slide along the axis of `|g · dt| / |Ω|`. `g` is a * Bernstein blend of `G0..G4` (so at most their largest magnitude), `|dt|` * stays below `2.45σ`, and `Ω` a Bézier blend of `O0..O2`, so at least the * origin's distance to their triangle. A splat whose ball around `a` of that * radius already lies inside the box (canonical centres first) leaves it * unchanged, which makes the result the same as sampling every splat. * * @experimental */ export declare function asogMotionBounds(data: Pick): { min: [number, number, number]; max: [number, number, number]; };