export interface McpLaunchBindingInput {
    agentId: string;
    workspacePath: string;
    serverUrl?: string;
    mcpHttpUrl?: string;
    runtimeAccessToken?: string;
    userId?: string;
    schedulerBaseUrl?: string;
}
export interface McpLaunchBinding {
    id: string;
    agentId: string;
    workspacePath: string;
    serverUrl: string;
    mcpHttpUrl: string;
    runtimeAccessToken?: string;
    userId?: string;
    schedulerBaseUrl?: string;
    enqueuedAt: string;
}
export interface ClaimedMcpLaunchBinding extends McpLaunchBinding {
    runtimeAccessToken?: string;
    userId?: string;
    schedulerBaseUrl?: string;
}
export interface McpLaunchBindingClaimRequest {
    agentId?: unknown;
    workspacePath: unknown;
    serverUrl?: unknown;
}
export declare function enqueueMcpLaunchBinding(input: McpLaunchBindingInput): McpLaunchBinding | null;
export declare function claimMcpLaunchBinding(request: McpLaunchBindingClaimRequest): ClaimedMcpLaunchBinding | null;
export declare function getMcpLaunchQueueSize(workspacePath: unknown): number;
/**
 * 主流程：按启动绑定 ID 移除尚未被 MCP node 认领的绑定。
 * 具体逻辑：启动流程失败时调用；若绑定已被认领或 ID 不存在则返回 false，保持幂等。
 */
export declare function removeMcpLaunchBinding(bindingId: string): boolean;
export declare function clearMcpLaunchBindingQueues(): void;
/**
 * 获取指定 agent 的最新 MCP session token。
 * 供 MCP node 在 401 后向 bridge 查询最新 token 使用。
 */
export declare function getLatestAgentToken(agentId: string): {
    runtimeAccessToken: string;
} | null;
//# sourceMappingURL=mcp-launch-binding-queue.d.ts.map