import { EventBusService, TransactionBaseService } from "@medusajs/medusa"; import { Logger } from "@medusajs/medusa/dist/types/global"; import { DataType } from "@shopify/shopify-api"; import { RestClient } from "@shopify/shopify-api/dist/clients/rest"; import { ClientOptions, ShopifyImportCallBack, ShopifyImportRequest } from "interfaces/shopify-interfaces"; import { EntityManager } from "typeorm"; import ShopifyService from "./shopify"; export interface ShopifyClientServiceProps { manager: EntityManager; eventBusService: EventBusService; logger: Logger; } declare class ShopifyClientService extends TransactionBaseService { static LIFE_TIME: import("awilix").LifetimeType; options: ClientOptions; defaultRestClient_: RestClient; protected eventbus_: EventBusService; logger: Logger; constructor(container: ShopifyClientServiceProps, options: ClientOptions); withTransaction(transactionManager?: EntityManager): this; static createClient(options: ClientOptions): RestClient; get(params: any, client?: RestClient): Promise; listAndImport(shopifyImportRequest: ShopifyImportRequest, shopifyService: ShopifyService, userId: string, path: string, extraHeaders?: any, extraQuery?: {}, gotPageCallBack?: ShopifyImportCallBack, client?: RestClient): Promise; delete(params: any, client?: RestClient): Promise; post(params: { path: any; body: any; type?: DataType; }, client?: RestClient): Promise; put(params: any, client?: RestClient): Promise; setClient(defaultRestClient_: RestClient): void; } export default ShopifyClientService;