import type { OtaPatchSet, UpdateCheckResponse } from '../api/types'; export type DownloadUpdateResult = { status: 'staged'; bundlePath: string; hash: string; } | { status: 'upToDate'; reason?: string; skippedFailedBundle?: boolean; skippedHash?: string; } | { status: 'disabled'; } | { status: 'incompatible'; } | { status: 'rollback'; reason?: string; }; type DownloadOptions = { channelName?: string; resolvedTarget?: { hash: string; downloadUrl?: string; bundleVersion?: number; version?: string; runtimeVersion?: string; manifestUrl?: string; mode?: 'full' | 'patch'; baseHash?: string; patchSet?: OtaPatchSet; fallback?: { mode: 'full'; downloadUrl: string; }; runtimeDelivery?: UpdateCheckResponse['runtimeDelivery']; }; }; export declare const downloadUpdate: (options?: DownloadOptions, onStatusUpdate?: (status: string) => void) => Promise; export type InstallBundleOptions = { channelName?: string; onStatusUpdate?: (status: string) => void; }; export declare const installBundle: (hash: string, downloadUrl: string, bundleVersion?: number, version?: string, runtimeVersion?: string, options?: InstallBundleOptions) => Promise; export {};