import type { ExternalTypes } from '../typing'; export interface PersistentStorageInterface { getToken: () => Promise; setToken: (token: ExternalTypes.SessionToken) => Promise; deleteToken: () => Promise; getCartId: () => Promise; setCartId: (cartId?: string) => Promise; deleteCartId: () => Promise; } export declare class PersistentStorage implements PersistentStorageInterface { readonly storageKeyPrefix: string; readonly customTokenStorageKey?: string | undefined; readonly customCartIdStorageKey?: string | undefined; constructor(storageKeyPrefix: string, customTokenStorageKey?: string | undefined, customCartIdStorageKey?: string | undefined); protected readonly tokenStorageKey: string; protected readonly cartIdStorageKey: string; getToken(): Promise; setToken(token: ExternalTypes.SessionToken): Promise; deleteToken(): Promise; getCartId(): Promise; setCartId(cartId?: string): Promise; deleteCartId(): Promise; }