Eager Loading Image Transforms In Plugin
I came across this post while searching for the same answer. Figured it out eventually. For future reference, the correct syntax in a (Craft 2) plugin would be:

$criterea-&gt;with = [
    ["coolImage", ["withTransforms" =&gt; ["transform"]]],
    "otherAssetField",
    "someCategoryField"
];