@loaders.gl/tile-converter 5.0.0-alpha.8 → 5.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import type { BrowserTileConversionFile } from './browser-sink.js';
2
+ /** Output profile and required budget for packaging finalized conversion resources. */
3
+ export interface TileConversionArchiveOptions {
4
+ /** Archive format; resources must already use the selected format's layout and encoding. */
5
+ readonly format: '3tz' | 'slpk';
6
+ /** Maximum final archive bytes, including headers/index; not peak serialization memory. */
7
+ readonly maxArchiveBytes: number;
8
+ }
9
+ /**
10
+ * Packages finalized, already-authored resources as a bounded 3TZ or SLPK Blob.
11
+ * 3TZ requires tileset.json; SLPK requires 3dSceneLayer.json.gz and precompressed I3S resources.
12
+ * Selecting an archive format does not convert geometry, metadata, or coordinate systems.
13
+ * Applications own input qualification, object URLs, and downloads. Inputs must remain unchanged.
14
+ * @param files - Unmodified files from a successfully finalized browser sink.
15
+ * @param options - Archive format and complete output-size budget.
16
+ * @returns Archive Blob to save using the selected .3tz or .slpk extension.
17
+ */
18
+ export declare function createTileConversionArchive(files: readonly BrowserTileConversionFile[], options: TileConversionArchiveOptions): Promise<Blob>;