import { type ArchiveLimits } from '../sceneImport/archive'; /** * Caps for a mod archive downloaded from a repository. Entry count matches the BeamNG importer's own * 50,000-file source ceiling; the byte ceilings are per entry and in total, and the compression-ratio * guard from the shared archive reader still applies. */ export declare const ZIP_SOURCE_LIMITS: ArchiveLimits; export type PreparedBridgeSource = { /** Directory (or the original file) the Bridge should read. */ path: string; /** Set when `path` is a temporary extraction of this ZIP. */ extractedFrom?: { archive: string; sha256: string; entries: number; uncompressedBytes: number; }; cleanup(): Promise; }; export declare function isZipSourcePath(source: string): boolean; /** * Safely extract a `.zip` source to a private temporary directory. The archive is rejected as a whole * if any entry is absolute, climbs out with `..`, is duplicated, exceeds the size caps, or looks like a * decompression bomb; members are written with exclusive-create into an empty real directory that is * removed by `cleanup()` (and on process exit). A non-zip source is returned unchanged. */ export declare function prepareBridgeSource(source: string, onProgress?: (message: string) => void, limits?: ArchiveLimits): Promise;