import type { StreamingPointSource } from './types.js'; export type DecodeWorkerFormat = 'las' | 'laz' | 'ply' | 'pcd' | 'e57' | 'pts' | 'xyz'; export interface DecodeWorkerOptions { /** * Override the worker constructor — useful for tests or custom bundlers. * May return a Worker synchronously or a Promise resolving to one; the * client handles both. Sync callbacks remain the common case and stay * type-compatible with the previous signature. */ spawn?: () => Worker | Promise; } /** * Reset hook for the module-level cache. Exported only for tests so the * "construction does not trigger spawn" and "rejected cache is cleared" * regression tests can start from a known clean slate. * * @internal */ export declare function __resetSharedSessionForTests(): void; export interface CreateDecodeWorkerSourceOptions extends DecodeWorkerOptions { format: DecodeWorkerFormat; blob: Blob; label?: string; /** stride>1 → drop every Nth point on decode for memory bounds. */ stride?: number; } /** * Build a `StreamingPointSource` that runs decode work in the shared * worker. The caller drives `open()` / `next()` / `close()` exactly * like the in-process `LasStreamingSource`. */ export declare function createDecodeWorkerSource(opts: CreateDecodeWorkerSourceOptions): StreamingPointSource; //# sourceMappingURL=worker-client.d.ts.map