interface PrepareInPlaceRestartLogger { warn(message: string, meta?: Record): void; } interface PrepareInPlaceRestartServices { aiService?: { chatSessionStore: { invalidateCache(): void; }; }; closeViteServer?: () => Promise; lockService?: { setIsRestarting(): void | Promise; }; } interface PrepareInPlaceRestartOptions { flipRestart?: true; logger?: PrepareInPlaceRestartLogger; } /** * Tell the CLI parent supervisor that the imminent `RESTART_EXIT_CODE` exit is a * template flip — not the editor-driven `/_sb_disconnect` restart, which shares * the same exit code. */ export declare function announceFlipRestartToParent(logger?: PrepareInPlaceRestartLogger): Promise; /** * Shared teardown before an in-place dev-server restart (`process.exit(98)`). * Used by `/_sb_disconnect` with `isRestart: true` and by the migration * self-restart seam after a template flip. */ export declare function prepareInPlaceRestart(services: PrepareInPlaceRestartServices, options?: PrepareInPlaceRestartOptions): Promise; export {}; //# sourceMappingURL=prepare-in-place-restart.d.mts.map