export type ArchiveKind = "tar" | "zip"; export type ArchiveLogger = { info?: (message: string) => void; warn?: (message: string) => void; }; export declare function resolveArchiveKind(filePath: string): ArchiveKind | null; export declare function resolvePackedRootDir(extractDir: string): Promise; export declare function withTimeout(promise: Promise, timeoutMs: number, label: string): Promise; export declare function extractArchive(params: { archivePath: string; destDir: string; timeoutMs: number; logger?: ArchiveLogger; }): Promise; export declare function fileExists(filePath: string): Promise; export declare function readJsonFile(filePath: string): Promise;