import { RemoteQueryEntryPoints, RemoteQueryFilters, RemoteQueryGraph, RemoteQueryInput } from "@biryanihouse/types"; /** * convert a specific API configuration to a remote query object * * @param config * @param entitiesMap * * @example * const remoteQueryObject = toRemoteQuery({ * entity: "product", * fields, * filters: { variants: QueryFilter({ sku: "abc" }) }, * context: { * variants: { calculated_price: QueryContext({ region_id: "reg_123" }) } * } * }); * * console.log(remoteQueryObject); */ export declare function toRemoteQuery(config: { entity: TEntity | keyof RemoteQueryEntryPoints; fields: RemoteQueryInput["fields"]; filters?: RemoteQueryFilters; pagination?: Partial["pagination"]>; context?: Record; }, entitiesMap: Map): RemoteQueryGraph; //# sourceMappingURL=to-remote-query.d.ts.map