export declare enum HttpMethod { GET = "get", POST = "post", PUT = "put", DELETE = "delete" } export default class Api { storeId: string | undefined; envId: string | undefined; secretKey: string | undefined; publicKey: string | undefined; constructor(storeId?: string, envId?: string, publicKey?: string, secretKey?: string); api(pathOpts: Api.Paths, options: Api.RequestOptions): Promise; get(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise; getAll(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<{ count: number; results: any[]; }>; post(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise; put(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise; delete(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise; isTestEnvEnabled(): Promise; setEnv(envId: string): Promise; setStoreEnv(storeId: string, envId?: string): Promise; setPublicKey(publicKey?: string): Promise; private isFrontend; private isAdmin; private truncatePath; private waitForAsyncResponse; }