/** * Detects the installation method and runs the appropriate upgrade command. * Falls back to npm if detection is ambiguous. */ import type { ReleaseChannel } from "../config/types.milady"; export type InstallMethod = "npm-global" | "bun-global" | "homebrew" | "snap" | "apt" | "flatpak" | "local-dev" | "unknown"; export interface UpdateResult { success: boolean; method: InstallMethod; command: string; previousVersion: string; newVersion: string | null; error: string | null; } export declare function detectInstallMethod(): InstallMethod; export declare function buildUpdateCommand(method: InstallMethod, channel: ReleaseChannel): { command: string; args: string[]; } | null; export declare function performUpdate(currentVersion: string, channel: ReleaseChannel, method?: InstallMethod): Promise; //# sourceMappingURL=self-updater.d.ts.map