import type * as THREE from 'three/webgpu'; import { type SplatSortRange } from '../../core/splat-sort-bounds'; import type { SplatSortMetric } from '../../core/splat-mesh-types'; /** * Main-thread side of the pooled draw's sort worker. One request in flight at * a time; a failed request is reported so the owner can requeue its capture. */ export declare class PooledSorter { private readonly sortMetric; private readonly onOrder; private readonly onFailure; submissionCount: number; lastLatencyMs: number; private readonly worker; private inFlightId; private submittedAt; private retains; private disposed; constructor(capacity: number, centers: Float32Array, sortMetric: SplatSortMetric, onOrder: (requestId: number, order: Float32Array, sources: Uint8Array) => void, onFailure: (requestId: number) => void); /** A request is out; the next `sort` must wait for its reply. */ get busy(): boolean; /** The worker holds an index list a request may omit to sort again. */ get retainsIndices(): boolean; /** Mirrors pool center rows; the buffers stay the caller's (no transfer). */ write(rows: readonly { start: number; centers: Float32Array; }[]): void; sort(requestId: number, modelView: THREE.Matrix4, matrices: Float32Array, bounds: THREE.Sphere, visibleRange: SplatSortRange | null, list?: { indices: Uint32Array; indexSources: Uint8Array; }): void; dispose(): void; private post; private fail; }