/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { Content } from '@google/genai';
import type { ConcreteNode } from './types.js';
import type { ContextTokenCalculator } from '../utils/contextTokenCalculator.js';
export declare function getStableId(obj: object, nodeIdentityMap: WeakMap<object, string>): string;
export declare class ContextGraphBuilder {
    private readonly tokenCalculator;
    private readonly nodeIdentityMap;
    private episodes;
    private currentEpisode;
    private pendingCallParts;
    private pendingCallPartsWithoutId;
    constructor(tokenCalculator: ContextTokenCalculator, nodeIdentityMap?: WeakMap<object, string>);
    clear(): void;
    processHistory(history: readonly Content[]): void;
    getNodes(): ConcreteNode[];
}
