UNPKG

@playcanvas/splat-transform

Version:

Library and CLI tool for 3D Gaussian splat format conversion and transformation

29 lines (28 loc) 830 B
import { type FileSystem, type Writer } from './file-system'; /** * A file system that writes files into a ZIP archive. * * Creates a ZIP file containing all written files. Used internally * for bundled output formats like .sog files. * * @example * ```ts * const outputWriter = await fs.createWriter('bundle.zip'); * const zipFs = new ZipFileSystem(outputWriter); * * // Write files into the zip * const writer = await zipFs.createWriter('data.json'); * await writer.write(jsonData); * await writer.close(); * * // Finalize the zip * await zipFs.close(); * ``` */ declare class ZipFileSystem implements FileSystem { close: () => Promise<void>; createWriter: (filename: string) => Promise<Writer>; mkdir: (path: string) => Promise<void>; constructor(writer: Writer); } export { ZipFileSystem };