import type { ServiceHost } from "./service-host.js"; export interface ServiceMigrationWorkspaceSeed { schemaVersion: 1; operationId: string; desired: "running" | "stopped"; } /** 仅首次迁移使用;已有.control(包括空目录或中断痕迹)绝不认领或清理。 */ export declare function prepareServiceMigrationWorkspace(workspace: string, operationId: string, desired: "running" | "stopped", host?: ServiceHost): ServiceMigrationWorkspaceSeed; /** 只读,不创建目录或锁;损坏标记与缺失标记严格区分。 */ export declare function readServiceMigrationPending(workspace: string): ServiceMigrationWorkspaceSeed | null; /** * 调用方必须已持有workspace锁,且已经完成本次manager验收或明确回退。 * host可在其常驻锁内调用;旧stopped流程须由服务驱动先取得同一workspace锁。 * 只删除精确匹配标记,不删除认证、gateway种子、锁数据库或整个.control。 */ export declare function releaseServiceMigrationPending(workspace: string, operationId: string): void; /** * 调用方持workspace锁且已确认目标进程全部退出;恢复旧服务文件之前持久封锁。 * 封锁痕迹不提供自动清除入口,后续手动serve也不能重新启用迁移种子。 */ export declare function blockServiceMigrationWorkspace(workspace: string, operationId: string): void; /** 调用方持workspace锁;只读识别标记状态,不构成恢复或重启授权。 */ export declare function inspectServiceMigrationRollbackWorkspace(workspace: string, operationId: string, expectedDesired?: "running" | "stopped"): "pending" | "blocked"; //# sourceMappingURL=service-migration-workspace.d.ts.map