/**
 * @module        runtime-coordinator
 * @description   运行时协调器，管理 Worker 生命周期调度与状态恢复
 *
 * @author        eddy
 * @organization  wykj
 * @ownership     wykj/eddy
 *
 * @created       2026-03-27
 * @updated       2026-04-03
 *
 * @role          manager
 * @layer         manager
 * @boundedContext worker-lifecycle
 */
import type { ProjectContext } from '../core/context.js';
import { type RuntimeState } from '../core/state.js';
import type { TaskBackend } from '../interfaces/TaskBackend.js';
export interface RuntimeRebuildResult {
    state: RuntimeState;
    updated: boolean;
}
/**
 * RuntimeCoordinator — simplified for single-worker model.
 *
 * No worktree scanning, no branch evidence inspection. The coordinator
 * normalizes ACP sessions and rebuilds worker slot state from persisted
 * leases and PM card states.
 */
export declare class RuntimeCoordinator {
    private readonly ctx;
    readonly _taskBackend: TaskBackend;
    constructor(ctx: ProjectContext, _taskBackend: TaskBackend);
    buildRuntimeProjection(): Promise<RuntimeRebuildResult>;
    rebuildRuntimeProjection(updatedBy?: string): Promise<RuntimeRebuildResult>;
    /**
     * Single-worker model: no worktree/branch scanning.
     * Just normalize sessions and ensure worker slots are consistent.
     */
    private computeRuntimeProjection;
    private normalizeSessions;
}
//# sourceMappingURL=runtime-coordinator.d.ts.map