/** * Objects the user picked with the composer's Select mode travel as ordinary * agent chat context items. This key namespace is what marks them as the * target set, so the prompt formatter and server actions can tell them apart * from ambient context such as the open page. */ export declare const AGENT_SELECTION_CONTEXT_KEY_PREFIX = "agent-select:"; /** application_state key mirroring the picked objects for actions to read. */ export declare const AGENT_SELECTION_STATE_KEY = "agent-selection"; export interface AgentSelectionReference { kind: string; id: string; } export interface AgentSelectionStateItem extends AgentSelectionReference { title: string; } export interface AgentSelectionState { items: AgentSelectionStateItem[]; updatedAt: number; } export declare function agentSelectionContextKey(kind: string, id: string): string; export declare function parseAgentSelectionContextKey(key: string): AgentSelectionReference | null; export declare function isAgentSelectionContextKey(key: string): boolean; /** * The preamble that makes picked objects the explicit target set. Returns an * empty string when nothing in `items` was picked with Select. */ export declare function formatAgentSelectionPreamble(items: readonly { key: string; title: string; }[]): string;