import type { CompiledContextPack, ContextPackCommunityContext, ContextPackNode, ContextPackRelationship } from '../contracts/context-pack.js'; export interface DeltaContextPackResult { /** True iff the input pack overlapped with previously-sent ids. When * false, the delta is identical to the input pack. */ delta_applied: boolean; /** Pack with overlapping nodes + their relationships removed. */ delta_pack: CompiledContextPack; /** Node ids the caller already had — surfaced explicitly so the agent * can resolve them from session state instead of re-reading content. */ referenced_ids: string[]; /** Bytes-saved estimate (delta vs original JSON length). */ bytes_saved: number; } export declare function computeDeltaContextPack(pack: CompiledContextPack, previouslySentNodeIds: ReadonlyArray): DeltaContextPackResult; /** * Convenience overload: extract every `node_id` from a pack. Use this to * record what the agent received after each call so the next call's * `previouslySentNodeIds` argument is correct. */ export declare function collectPackNodeIds(pack: CompiledContextPack): string[];