/**
 * Resolve the MCP endpoint URL.
 * Priority: explicit config > LOBU_MEMORY_URL env > saved memory server > default cloud server.
 */
export declare function resolveMcpEndpoint(config?: {
    mcpUrl?: unknown;
    url?: unknown;
    apiUrl?: unknown;
}): Promise<string | null>;
export declare function mcpRpc(mcpUrl: string, method: string, params?: Record<string, unknown>, contextName?: string): Promise<unknown>;
/**
 * Call a Lobu memory tool over the REST proxy at `POST /api/{orgSlug}/{toolName}`.
 */
export declare function restToolCall<T = unknown>(mcpUrl: string, toolName: string, args: Record<string, unknown>, contextName?: string): Promise<T>;
/**
 * GET sibling of `restToolCall` — fetches `${origin}/api/${orgSlug}/${path}`.
 * Used by `lobu call --list` to hit `GET /api/<org>/tools` without spinning up
 * an MCP session for discovery.
 */
export declare function restGet<T = unknown>(mcpUrl: string, path: string, contextName?: string): Promise<T>;
//# sourceMappingURL=mcp.d.ts.map