import ShopApi from 'commercecloud-ocapi-client'; import { Customer, ClientConfig } from 'commerce-sdk'; import { CustomersApi } from './interfaces'; import { Cart, Customer as ApiCustomer, CustomerAddress, Order, OrderSearchParams, SfccIntegrationContext } from '../../types'; export declare class OcapiCustomersApi implements CustomersApi { protected config: ShopApi.ApiConfig; protected api: ShopApi.CustomersApi; protected customerId: string; constructor(config: ShopApi.ApiConfig); protected getCustomerId(registeredOnly?: boolean): string; guestSignIn(): Promise; refreshToken(): Promise; signIn(username: string, password: string): Promise<{ customer: ApiCustomer; token: string; }>; getCustomer(): Promise; getAddresses(): Promise; createAddress(address: CustomerAddress): Promise; updateAddress(address: CustomerAddress): Promise; deleteAddress(address: CustomerAddress): Promise; createCustomer(email: string, password: string, firstName: string, lastName: string): Promise; updateCustomer(email: string, firstName: string, lastName: string): Promise; updateCustomerPassword(currentPassword: string, newPassword: string): Promise; getCarts(context: SfccIntegrationContext): Promise; getOrders(context: SfccIntegrationContext, params: OrderSearchParams): Promise; } export declare class CapiCustomersApi implements CustomersApi { protected config: ClientConfig; protected api: Customer.ShopperCustomers; protected customerId: string; constructor(config: ClientConfig); protected getCustomerId(registeredOnly?: boolean): string; guestSignIn(): Promise; refreshToken(): Promise; signIn(username: string, password: string): Promise<{ customer: ApiCustomer; token: string; }>; getCustomer(): Promise; getAddresses(): Promise; createAddress(address: CustomerAddress): Promise; updateAddress(address: CustomerAddress): Promise; deleteAddress(address: CustomerAddress): Promise; createCustomer(email: string, password: string, firstName: string, lastName: string): Promise; updateCustomer(email: string, firstName: string, lastName: string): Promise; updateCustomerPassword(currentPassword: string, newPassword: string): Promise; getCarts(context: SfccIntegrationContext): Promise; getOrders(context: SfccIntegrationContext, params: OrderSearchParams): Promise; }