import type { IncomingMessage, ServerResponse } from "node:http"; import type { InboundEventKind } from "../channels/inbound-event/kind.js"; import type { KlawConfig } from "../config/types.klaw.js"; type McpRequestContext = { sessionKey: string; messageProvider: string | undefined; accountId: string | undefined; inboundEventKind: InboundEventKind | 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: KlawConfig, auth: { senderIsOwner: boolean; }): McpRequestContext; export {};