import type { InstalledPackageInfo, InstalledPackageManifest, PackageManifest, PackageOperationPreview, RuntimeAppManifest } from "@edenapp/types"; import type { PackageManager } from "./PackageManager"; export declare class PackageHandler { private packageManager; constructor(packageManager: PackageManager); /** Install an application or DLC from a local path. */ handleInstallPackage(args: { sourcePath: string; replace?: boolean; }): Promise; /** * Uninstall an application or DLC by its package ID. */ handleUninstallPackage(args: { packageId: string; }): Promise; /** * List all installed applications. * @param showHidden - If true, includes overlay apps and daemons (hidden by default) * @param showRestricted - If true, includes apps the current user cannot launch (hidden by default) */ handleListApps(args: { showHidden?: boolean; showRestricted?: boolean; }): Promise; /** Identify the authenticated app and return its extension resources. */ handleSelf(args: { _callerAppId?: string; _callerWebContentsId?: number; }): InstalledPackageInfo; /** Get an installed package and any extension resources it owns. */ handleGetPackage(args: { packageId: string; _callerWebContentsId?: number; }): InstalledPackageInfo; /** * Toggle hot reload for an app */ handleToggleHotReload(params: { packageId: string; }): Promise<{ enabled: boolean; }>; /** * Check if hot reload is enabled for an app */ handleIsHotReloadEnabled(params: { packageId: string; }): Promise<{ enabled: boolean; }>; /** * Get the icon for an installed package as a data URL. */ handleGetPackageIcon(args: { packageId: string; }): Promise<{ icon: string | undefined; }>; /** * Get info about a package file without installing it */ handleGetPackageInfo(args: { path: string; }): Promise<{ success: boolean; manifest?: PackageManifest; preview?: PackageOperationPreview; error?: string; }>; /** * Get the installed size of a package in bytes. */ handleGetPackageSize(args: { packageId: string; }): Promise<{ size: number | undefined; }>; private requireCallerAppId; } //# sourceMappingURL=PackageHandler.d.ts.map