import { AnonymousSignInResult, Customer, CustomerSignupDraft, TokenizedSignInResult } from '@cxcloud/ct-types/customers';
import { UpdateAction } from '@cxcloud/ct-types/common';
export declare function findCustomerById(customerId: string): Promise<Customer>;
export declare namespace Customers {
    function login(email: string, password: string, token?: string): Promise<TokenizedSignInResult>;
    function register(customerData: CustomerSignupDraft, token?: string): Promise<TokenizedSignInResult>;
    function loginAnonymously(): Promise<AnonymousSignInResult>;
    function findById(customerId: string, token: string): Promise<Customer>;
    function update(customerId: string, customerVersion: number, actions: UpdateAction[], token: string): Promise<Customer>;
    function remove(customerId: string, customerVersion: number, token: string): Promise<Customer>;
}
