/**
 * Unified Context Manager for Dev Flow MCP v2.1
 * Combines functionality from ContextManager, ContextPreserver, and EnhancedContextManager
 */
import { Event } from './types.js';
export interface ContextFrame {
    id: string;
    task_id: string;
    stage: string;
    summary: string;
    key_facts: string[];
    decisions_made: string[];
    open_questions: string[];
    files_touched: string[];
    created_at: string;
    parent_frame?: string;
    token_usage?: number;
    importance_score?: number;
}
export interface ContextState {
    frames: ContextFrame[];
    active_frame_id: string | null;
    global_facts: string[];
    mistake_patterns: string[];
    recent_events: Event[];
}
export declare class UnifiedContextManager {
    private projectRoot;
    private contextDir;
    private maxFrames;
    private maxFactsPerFrame;
    private maxEvents;
    private maxContextLength;
    private maxTokens;
    constructor(projectRoot: string);
    createFrame(taskId: string, stage: string): Promise<ContextFrame>;
    updateFrame(updates: Partial<ContextFrame>): Promise<void>;
    addFact(fact: string, isGlobal?: boolean): Promise<void>;
    addEvent(event: Event): Promise<void>;
    buildContext(taskId: string): Promise<string>;
    private buildBasicContext;
    recordDecision(decision: string): Promise<void>;
    addQuestion(question: string): Promise<void>;
    updateTokenUsage(tokens: number): Promise<void>;
    updateImportanceScore(score: number): Promise<void>;
    private loadContextState;
    private saveContextState;
    private generateFrameId;
    private selectCriticalFacts;
    private calculateFactImportance;
    private compressFacts;
    private limitFacts;
    private truncateContext;
}
//# sourceMappingURL=unified-context-manager.d.ts.map