import { ApolloClient, NormalizedCacheObject } from "@apollo/client"; import { DocumentNode } from "graphql"; export declare class Service { protected token: string | null; protected client: ApolloClient; protected orgId: string; protected storeId: string; protected endpoint: string; protected environment: "dev" | "live"; constructor(endpoint: string, orgId: string, storeId: string, environment?: "dev" | "live"); setToken(token: string): void; setStoreId(storeId: string): void; setOrgId(orgId: string): void; private handleApolloError; protected graphqlQuery(query: DocumentNode, variables: any): Promise; protected graphqlMutation(mutation: DocumentNode, variables: any): Promise; protected restApiCallWithToken(path: string, method: "GET" | "POST" | "PUT" | "DELETE", data?: any, headers?: any): Promise; protected restApiCallWithNoToken(path: string, method: "GET" | "POST" | "PUT" | "DELETE", data?: any, headers?: any): Promise; protected restApiCallWithNoHeader(path: string, method: "GET" | "POST" | "PUT" | "DELETE", data?: any, headers?: any): Promise; protected graphqlQueryV2(query: DocumentNode, variables: any): Promise; protected graphqlMutationV2(mutation: DocumentNode, variables: any): Promise; protected graphqlQueryV3(query: DocumentNode, variables: any): Promise; protected graphqlQueryV4(query: DocumentNode, variables: any): Promise; protected graphqlMutationV3(mutation: DocumentNode, variables: any): Promise; }