navflow-browser-server
Version:
Standalone Playwright browser server for NavFlow - enables browser automation with API key authentication, workspace device management, session sync, and requires Node.js v22+
34 lines • 957 B
TypeScript
export declare class UpdateService {
private packageName;
private currentVersion;
private onShutdown?;
constructor(packageName: string | undefined, currentVersion: string, onShutdown?: () => Promise<void>);
/**
* Check the latest version available on npm
*/
getLatestVersion(): Promise<string | null>;
/**
* Compare version strings (semver-like comparison)
*/
private compareVersions;
/**
* Check if an update is available
*/
isUpdateAvailable(): Promise<{
available: boolean;
latestVersion?: string;
}>;
/**
* Perform the update by restarting with the latest version
*/
performUpdate(): Promise<boolean>;
/**
* Schedule automatic update check
*/
scheduleUpdateCheck(intervalMinutes?: number): NodeJS.Timeout;
/**
* Get current version
*/
getCurrentVersion(): string;
}
//# sourceMappingURL=UpdateService.d.ts.map