import type { OTAVersionConfig } from './index'; /** * Result of an OTA version check */ export interface OTAVersionCheckResult { /** Whether an update is available */ hasUpdate: boolean; /** Whether the update is compatible with the current app version */ isCompatible: boolean; /** The remote OTA version */ remoteVersion: string; /** The currently installed OTA version (if any) */ currentVersion: string | null; /** Additional metadata from the version config */ metadata?: { isSemver?: boolean; releaseNotes?: string; targetVersions?: OTAVersionConfig['targetVersions']; }; } /** * Checks for OTA updates by comparing versions * @param versionCheckUrl - URL to check for version information * @param currentOtaVersion - Currently installed OTA version (if any) * @param currentAppVersion - Current app version * @returns Version check result with update availability and compatibility info */ export declare function checkOTAVersion(versionCheckUrl: string, currentOtaVersion: string | null, currentAppVersion: string): Promise; /** * Simple helper to check if an OTA update is both available and compatible * @param versionCheckUrl - URL to check for version information * @param currentOtaVersion - Currently installed OTA version (if any) * @param currentAppVersion - Current app version * @returns true if update is available and compatible, false otherwise */ export declare function hasCompatibleUpdate(versionCheckUrl: string, currentOtaVersion: string | null, currentAppVersion: string): Promise; //# sourceMappingURL=otaVersionChecker.d.ts.map