/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { Content } from '@google/genai';
import type { AgentChatHistory, HistoryTurn } from '../core/agentChatHistory.js';
import type { ConcreteNode } from './graph/types.js';
import type { ContextTracer } from './tracer.js';
import type { ContextEnvironment } from './pipeline/environment.js';
import type { ContextProfile } from './config/profiles.js';
import type { PipelineOrchestrator } from './pipeline/orchestrator.js';
import type { AdvancedTokenCalculator } from './utils/contextTokenCalculator.js';
export declare class ContextManager {
    private readonly sidecar;
    private readonly env;
    private readonly tracer;
    private readonly chatHistory;
    private readonly advancedTokenCalculator;
    private readonly headerProvider?;
    private buffer;
    private readonly eventBus;
    private readonly orchestrator;
    private readonly evaluatedNodeIds;
    private lastTriggeredDeficit;
    private lastTriggeredNormalizeDeficit;
    private lastRenderCache?;
    private hasPerformedHotStart;
    constructor(sidecar: ContextProfile, env: ContextEnvironment, tracer: ContextTracer, orchestrator: PipelineOrchestrator, chatHistory: AgentChatHistory, advancedTokenCalculator: AdvancedTokenCalculator, headerProvider?: (() => Promise<Content | undefined>) | undefined);
    renderHistory(pendingRequest?: HistoryTurn, activeTaskIds?: Set<string>, abortSignal?: AbortSignal): Promise<{
        history: HistoryTurn[];
        apiHistory: Content[];
        pendingApiHistory: Content[];
        didApplyManagement: boolean;
        baseUnits: number;
        processedNodes: readonly ConcreteNode[];
    }>;
    waitForPipelines(): Promise<void>;
    shutdown(): void;
    getNodes(): readonly ConcreteNode[];
    getEnvironment(): ContextEnvironment;
    getPristineGraph(): readonly ConcreteNode[];
    private evaluateTriggers;
    private getProtectedNodeIds;
    private performHotStartCalibration;
}
