type JsonObject = Record; interface TarEntry { path: string; kind: "file" | "directory"; size: number; } export declare function preflightTarball(bytes: Uint8Array, limits?: { maxExpandedBytes?: number; maxEntries?: number; }): Promise<{ entries: TarEntry[]; expandedBytes: number; }>; export declare function readBodyCapped(response: Response, limit: number, errorCode: string): Promise; export declare function adoptCopyfileAliases(options?: { homeDir?: string; pathValue?: string; onAliasSwitched?: (path: string) => void; }): JsonObject; export declare function rollbackCopyfileAliases(receiptId: string, options?: { homeDir?: string; pathValue?: string; }): JsonObject; export declare function updateCopyfileRuntime(version: string, options?: { homeDir?: string; pathValue?: string; cwd?: string; registryOrigin?: string; fetcher?: typeof fetch; minReleaseAge?: number; minReleaseAgeExclude?: string[]; reviewedLock?: string; reviewedLockSha256?: string; onLauncherSwitched?: (path: string) => void; }): Promise; export declare function rollbackCopyfileRuntime(receiptId: string, options?: { homeDir?: string; }): JsonObject; export {};