import type { AgentEditorContextSnapshot, AgentMetadata } from "../../services/agentService";
type ContextItem = NonNullable<AgentMetadata["items"]>[number];
type ContextComponent = NonNullable<AgentMetadata["components"]>[number];
export declare function getAgentContextItemKey(item: ContextItem | ContextComponent["pageItem"] | null | undefined): string | null;
export declare function getAgentContextComponentKey(component: ContextComponent | null | undefined): string | null;
/**
 * Whether a built editor-context payload actually references something a user is
 * viewing. `buildCurrentContext()` always returns an object (it can carry only
 * workspace/page-loaded/sidebar flags), so gate UI and merges on real content.
 */
export declare function hasViewedContent(viewed: AgentMetadata | null | undefined): boolean;
export declare function mergeViewedContext(storedContext: AgentMetadata | null | undefined, liveContext: AgentMetadata | null | undefined): AgentMetadata | null;
export declare function toEditorContextSnapshot(context: AgentMetadata | null | undefined): AgentEditorContextSnapshot | undefined;
export {};
