/** 单个命令的会话状态 */ export interface CommandSession { /** 命令名 */ command: string; /** 会话 ID */ sessionId: string; /** 迭代 */ iteration: string; /** Task ID(如果有) */ taskId?: string; /** 当前阶段 */ phase: string; /** 用户已回答的选项 */ answers: Record; /** 创建时间 */ createdAt: string; /** 最后更新时间 */ updatedAt: string; } /** 保存一个命令的会话状态 */ export declare function saveSession(session: Omit): Promise; /** 检测是否有未完成的会话 */ export declare function checkPendingSession(command: string, iteration: string): Promise; /** 完成/清除会话 */ export declare function clearSession(command: string, iteration: string): Promise; /** 列出所有未完成的会话 */ export declare function listPendingSessions(): Promise; /** 恢复交互 — 检测未完成会话并提示 */ export declare function tryResume(command: string, iteration: string): Promise<{ resumed: boolean; answers?: Record; }>; //# sourceMappingURL=session-state.d.ts.map