import type { ControlMcpService } from "./mcp-api.js"; import type { IncomingMessage } from "node:http"; import type { ControlAuth } from "./auth.js"; /** 认证交换独立于已登录控制 API;签发能力仅授予私有本地 socket。 */ export declare function handleControlAuth(input: { pathname: string; request: Pick; local: boolean; auth?: ControlAuth; body(): Promise>; revoked?(owner: string): void; }): Promise<{ status: number; body: unknown; } | undefined>; /** HTTP 适配负责请求解析和撤销后的 MCP 会话清理。 */ export declare function handleControlAuthRequest(request: IncomingMessage, local: boolean, auth: ControlAuth | undefined, mcp: ControlMcpService): Promise<{ status: number; body: unknown; }>; //# sourceMappingURL=auth-api.d.ts.map