export interface CreatedPointCloud { id: string | number; name?: string; } export interface CreatePointCloudResult { pointCloud: CreatedPointCloud; upload: { uploadUrl: string; }; } /** The converter reports a stage plus an optional percentage; only `convert` and `upload` carry one. */ export interface ConversionEvent { jobId: string; pointCloudId: number; status: string; progress: number | null; message?: string; success?: boolean; } export interface ConversionWatcher { onProgress?: (event: ConversionEvent) => void; onFinished?: (event: ConversionEvent) => void; onFailed?: (reason: string) => void; } export declare const CONVERSION_FAILED = "failed"; /** Routed through the CDT proxy so organizationId comes from the session, not the client. */ export declare function createPointCloud(name: string, extension: string, buildingId?: number): Promise; export declare function startConversion(apiBase: string, pointCloudId: string | number): Promise<{ jobId: string; }>; /** Watches one job, returning a close function. The service emits only `progress` and * `finished`; a failure is a `progress` with `status: 'failed'`, or `success: false`. */ export declare function watchConversion(apiBase: string, jobId: string, watcher: ConversionWatcher): () => void; //# sourceMappingURL=pointCloudConversion.d.ts.map