import { PluginLanguage } from './translations'; export type UpdateCheckInterval = 'startup' | 'daily' | 'weekly' | 'never'; export declare function getNextPluginUpdateCheckDelay(interval: UpdateCheckInterval, cachedCheckedAt: string | null | undefined, lastAttemptAt: number, now?: number): number | null; export interface PluginUpdateNotesSection { title: string; items: string[]; } export interface PluginUpdateNotesDocument { title?: string; sections?: PluginUpdateNotesSection[]; notice?: string; } export interface LocalizedPluginUpdateNotesDocument { 'zh-CN'?: PluginUpdateNotesDocument; en?: PluginUpdateNotesDocument; } /** Compares npm-style semantic versions without accepting version ranges. */ export declare function comparePluginVersions(left: string, right: string): number; export declare function isNewerPluginVersion(candidate: string, current: string): boolean; /** Local Dev builds compare against their source version, while keeping genuine prereleases. */ export declare function getUpdateComparisonVersion(version: string, devBuild: boolean): string; export declare function formatPluginUpdateNotes(value: unknown, language?: PluginLanguage): string;