import { checkForUpdate, type UpdateInfo } from '../services/update-check.js'; /** Records a notice for the next tool result, unless it has already been said. */ export declare function armUpdateNotice(info: UpdateInfo | null): void; /** * The notice, if one is waiting -- and never again after that. * * Called on the tool result path, so it must stay synchronous and cheap. */ export declare function takeUpdateNotice(): string | null; /** * The sentence to fold into the server's `instructions`, or null. * * Marks the notice as said: the trailer will not repeat it later in the session. */ export declare function initUpdateNotice(current?: string): string | null; /** * Checks the registry in the background and arms the trailer. * * Call after `server.connect()`: nothing here may sit on the handshake or on a * tool response. A failure is not worth reporting -- an unknown version is the * same as no notice. */ export declare function startUpdateWatch(check?: typeof checkForUpdate, current?: string): Promise; /** Tests only: the module-level state is per process by design. */ export declare function resetUpdateNotice(): void;