/** * Updater event name constants. * * Use these instead of hard-coding string literals when subscribing to * updater events from JavaScript: * * import { Events, Updater } from "@wailsio/runtime"; * * Events.On(Updater.Events.UpdateAvailable, (e) => { * console.log("update found:", e.data.version); * }); * * Events.On(Updater.Events.DownloadProgress, (e) => { * const p = e.data; * console.log(`${p.written} / ${p.total} bytes`); * }); * * Mirrors the Go-side constants in `pkg/updater/events.go` and the * user-action constants in `pkg/updater/window_lifecycle.go`. Any * changes here must stay in sync with those files — there's an * integration test that asserts the strings match. */ export declare const Events: Readonly<{ /** A Check round-trip is starting. Payload: null. */ CheckStarted: "wails:updater:check-started"; /** Check found a newer release. Payload: Release. */ UpdateAvailable: "wails:updater:update-available"; /** Check confirmed the caller is up to date. Payload: null. */ NoUpdate: "wails:updater:no-update"; /** Download is starting. Payload: Release. */ DownloadStarted: "wails:updater:download-started"; /** Periodic progress tick during download (~10 Hz). Payload: Progress. */ DownloadProgress: "wails:updater:download-progress"; /** All bytes are on disk, but verification has not yet started. Payload: Release. */ DownloadComplete: "wails:updater:download-complete"; /** Signature / digest verification has started. Payload: Release. */ Verifying: "wails:updater:verifying"; /** The Updater is swapping the binary into place. Payload: Release. */ Installing: "wails:updater:installing"; /** Update is staged and a restart is pending. Payload: Release. */ UpdateReady: "wails:updater:update-ready"; /** Something failed. Payload: ErrorInfo { stage, message, provider }. */ Error: "wails:updater:error"; /** Host-side context delivered once per session. Payload: Meta { currentVersion, skippedVersion }. */ Meta: "wails:updater:meta"; /** Sub-namespace: user-action events that the UI emits BACK to the host. */ User: Readonly<{ /** User clicked Install on an Available update. */ Install: "wails:updater:user:install"; /** User clicked Restart & Apply on a Ready update. */ Restart: "wails:updater:user:restart"; /** User clicked Skip This Version. */ Skip: "wails:updater:user:skip"; /** User clicked Remind Me Later. */ Remind: "wails:updater:user:remind"; /** User clicked Close / Cancel. */ Cancel: "wails:updater:user:cancel"; }>; /** Sub-namespace: framework-internal events the UI emits to coordinate * with the host. Most app code can ignore these. */ Window: Readonly<{ /** The window finished loading and asks the host to replay current state. */ Ready: "wails:updater:window:ready"; }>; }>;