/**
 * RunMeta — 実行メタデータの管理モジュール
 *
 * ランのメタデータ（task, workflow, status, 開始・終了時刻など）を
 * .takt/runs/{slug}/meta.json へ書き出す責務を担う。
 */
import type { RunPaths } from '../../../core/workflow/run/run-paths.js';
import type { WorkflowResumePoint } from '../../../core/models/index.js';
export interface DirectResumeMetadata {
    readonly sourceRunSlug: string;
    readonly resumeMode: 'requeue' | 'retry' | 'instruct';
}
export declare class RunMetaManager {
    private readonly runMeta;
    private readonly metaAbs;
    private finalized;
    constructor(runPaths: RunPaths, task: string, workflowName: string, directResume?: DirectResumeMetadata);
    updateStep(stepName: string, iteration: number, resumePoint?: WorkflowResumePoint): void;
    updatePhase(stepName: string, iteration: number, phase: 1 | 2 | 3): void;
    updateResumePoint(resumePoint?: WorkflowResumePoint): void;
    finalize(status: 'completed' | 'aborted', iterations?: number): void;
    get isFinalized(): boolean;
    private writeRunMeta;
}
//# sourceMappingURL=runMeta.d.ts.map