/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { Config } from '../config/config.js';
export declare class ContextManager {
    private readonly loadedPaths;
    private readonly loadedFileIdentities;
    private readonly config;
    private globalMemory;
    private extensionMemory;
    private projectMemory;
    constructor(config: Config);
    /**
     * Refreshes the memory by reloading global, extension, and project memory.
     */
    refresh(): Promise<void>;
    private discoverMemoryPaths;
    private loadMemoryContents;
    private categorizeMemoryContents;
    /**
     * Discovers and loads context for a specific accessed path (Tier 3 - JIT).
     * Traverses upwards from the accessed path to the project root.
     */
    discoverContext(accessedPath: string, trustedRoots: string[]): Promise<string>;
    private emitMemoryChanged;
    getGlobalMemory(): string;
    getExtensionMemory(): string;
    getEnvironmentMemory(): string;
    private markAsLoaded;
    getLoadedPaths(): ReadonlySet<string>;
}
