/**
 * Plan State Store - 计划执行状态管理
 *
 * 管理 AI 计划执行流程，跟踪每个步骤的执行状态
 * 支持步骤的开始、完成、失败、进度计算等功能
 */
import { PlanStep } from "../types";
export interface ExtendedPlanStep extends PlanStep {
    completedAt?: number;
    error?: string;
    failed?: boolean;
    startedAt?: number;
}
interface PlanState {
    currentMessageId: string | null;
    currentPlan: ExtendedPlanStep[] | null;
    currentStepIndex: number;
    endTime: number | null;
    isExecuting: boolean;
    startTime: number | null;
    totalSteps: number;
}
export declare const planStore$: import("@legendapp/state").Observable<PlanState>;
export declare const planActions: {
    initializePlan: (plan: ExtendedPlanStep[], messageId: string) => void;
    updatePlan: (plan: ExtendedPlanStep[]) => void;
    startStep: (stepIndex: number) => void;
    completeStep: (stepIndex: number) => void;
    failStep: (stepIndex: number, error?: string) => void;
    completePlan: () => void;
    clearPlan: () => void;
    getCurrentStep: () => ExtendedPlanStep | null;
    getProgress: () => number;
    getDuration: () => number;
};
export {};
