/** * Prefill for the tunnel create wizard (BOFF-7056). * * The VibeControls browser extension's "Share localhost" action opens * `/vibecontrols/tunnels/new?agentId=` so the wizard starts with that * agent selected. The id is only kept when it names an agent the workspace * actually has; anything else falls back to "Select agent". */ /** Query parameter the wizard reads the agent from. */ export declare const AGENT_ID_PARAM = "agentId"; /** The agent id requested in the URL, trimmed; empty when absent. */ export declare function agentIdFromSearch(params: URLSearchParams): string; /** * The agent id to keep once the agent list has loaded: the requested id when * it is one of the workspace's agents, otherwise empty. While the list is * still loading (`agents` undefined) the requested id is kept as is. */ export declare function resolvePrefilledAgentId(requested: string, agents: ReadonlyArray<{ id: string; }> | undefined): string;