import type http from "node:http"; export interface CloudConfigLike { cloud?: { enabled?: boolean; apiKey?: string; baseUrl?: string; }; } interface CloudClientLike { listAgents: () => Promise; createAgent: (args: { agentName: string; agentConfig?: Record; environmentVars?: Record; }) => Promise; deleteAgent: (agentId: string) => Promise; } interface ConnectedCloudAgentLike { agentName: string; } interface CloudManagerLike { init?: () => Promise; getClient: () => CloudClientLike | null; connect: (agentId: string) => Promise; disconnect: () => Promise; getStatus: () => unknown; getActiveAgentId: () => string | null; } interface RuntimeLike { agentId: string; character: { secrets?: Record; }; updateAgent: (agentId: string, update: { secrets: Record; }) => Promise; } interface IntegrationTelemetrySpanLike { success: (args?: { statusCode?: number; }) => void; failure: (args?: { statusCode?: number; error?: unknown; errorKind?: string; }) => void; } type CreateTelemetrySpanLike = (meta: { boundary: "cloud"; operation: string; timeoutMs?: number; }) => IntegrationTelemetrySpanLike; export interface CloudRouteState { config: CloudConfigLike; cloudManager: CloudManagerLike | null; runtime: RuntimeLike | null; saveConfig?: (config: CloudConfigLike) => void; createTelemetrySpan?: CreateTelemetrySpanLike; } export declare function handleCloudRoute(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, method: string, state: CloudRouteState): Promise; export {}; //# sourceMappingURL=cloud-routes.d.ts.map