/**
 * Session State Tracker for MSSCI-12082
 *
 * Extends session file format to track stepped workflow state with
 * state tracking reader/writer.
 */
/**
 * Stepped workflow state tracked in session file
 */
export interface WorkflowState {
    /** Workflow name (e.g., 'architecture', 'planning') */
    name: string;
    /** Workflow type: stepped or phased */
    type: 'stepped' | 'phased';
    /** Tri-modal mode if applicable (create, validate, edit) */
    mode?: 'create' | 'validate' | 'edit';
    /** ISO timestamp when workflow started */
    started: string;
    /** ISO timestamp of last update */
    lastUpdated: string;
    /** Current step number (1-indexed) */
    currentStep: number;
    /** Array of completed step numbers */
    stepsCompleted: number[];
    /** Current workflow status */
    status: 'in_progress' | 'completed' | 'paused';
    /** User notes or decisions at gates */
    notes?: string;
}
/**
 * Result of parsing session file for workflow state
 */
export interface SessionStateResult {
    /** Whether parsing succeeded */
    success: boolean;
    /** Extracted workflow state (if found) */
    state?: WorkflowState;
    /** Error message if parsing failed */
    error?: string;
}
/**
 * Result of updating session file with workflow state
 */
export interface UpdateResult {
    /** Whether update succeeded */
    success: boolean;
    /** Updated content (if successful) */
    content?: string;
    /** Error message if update failed */
    error?: string;
}
/**
 * Create initial workflow state for a new stepped workflow
 *
 * @param workflowName - Name of the workflow being started
 * @param workflowType - Type of workflow (stepped or phased)
 * @param mode - Optional tri-modal mode
 * @returns Initial WorkflowState object
 */
export declare function initWorkflowState(workflowName: string, workflowType: 'stepped' | 'phased', mode?: 'create' | 'validate' | 'edit'): WorkflowState;
/**
 * Update workflow state after step completion
 *
 * @param state - Current workflow state
 * @param completedStep - Step number that was just completed
 * @param nextStep - Step number to move to (optional, defaults to completedStep + 1)
 * @returns Updated WorkflowState object
 */
export declare function updateWorkflowState(state: WorkflowState, completedStep: number, nextStep?: number): WorkflowState;
/**
 * Parse session file content to extract workflow state
 *
 * @param content - Raw markdown content of session file
 * @returns SessionStateResult with extracted state or error
 */
export declare function parseSessionState(content: string): SessionStateResult;
/**
 * Format workflow state as markdown section
 *
 * @param state - WorkflowState to format
 * @returns Formatted markdown string for ## Workflow State section
 */
export declare function formatWorkflowState(state: WorkflowState): string;
/**
 * Update session file content with new workflow state
 *
 * @param content - Current session file content
 * @param state - Workflow state to write
 * @returns UpdateResult with updated content or error
 */
export declare function updateSessionContent(content: string, state: WorkflowState): UpdateResult;
//# sourceMappingURL=session-state.d.ts.map