import type { PluginInput } from "@opencode-ai/plugin"; type UpdateResult = { updated: true; name: string; current: string; latest: string; } | { updated: false; error: "remove_failed"; name: string; current: string; latest: string; } | { updated: false; }; export declare function startAutoUpdate(ctx: PluginInput, enabled: boolean): void; export declare function checkAutoUpdate(signal: AbortSignal): Promise; export declare function updateRemoveDir(packageDir: string, name: string): Promise; export declare function isAutoUpdatableSpec(spec: string): boolean; export declare function isVersionNewer(latest: string, current: string): boolean; export {}; //# sourceMappingURL=update.d.ts.map