import type { IncomingMessage, ServerResponse } from "node:http"; import type { OpenClawConfig } from "../config/types.openclaw.js"; type McpRequestContext = { sessionKey: string; messageProvider: string | undefined; accountId: string | undefined; senderIsOwner: boolean; }; export declare function validateMcpLoopbackRequest(params: { req: IncomingMessage; res: ServerResponse; ownerToken: string; nonOwnerToken: string; }): { senderIsOwner: boolean; } | null; export declare function readMcpHttpBody(req: IncomingMessage): Promise; export declare function resolveMcpRequestContext(req: IncomingMessage, cfg: OpenClawConfig, auth: { senderIsOwner: boolean; }): McpRequestContext; export {};