import DataLoader from "dataloader"; import type { ResolvedProductEntry } from "./load-products-by-ids"; import type { StorefrontApiClient } from "./storefront-api-client"; /** * Coalesces individual storefront product loads into a single `nodes(ids:)` * request. Mirrors `items-batch-loader.ts`: caching/dedup lives upstream in the * TanStack QueryClient (see `StorefrontApiClient.loadProductBatched`), so this * loader only coalesces in-flight requests within a ~50ms window. * * Keys are node GIDs (product or variant), as produced by `refToNodeId`. */ export declare const createProductsBatchLoader: (client: StorefrontApiClient) => DataLoader;