UNPKG

storenest-commerce

Version:

Complete e-commerce SDK for Storenest platform with React components, multi-language support, secure checkout, and enterprise-grade security

19 lines (18 loc) 937 B
export declare function formatPrice(price: number, locale?: string, currency?: string): string; export declare function getOrCreateUserId(storageKey?: string): string | null; export declare function generateNonce(): string; export declare function generateApiToken(apiKey: string, requestBody?: string): Promise<{ timestamp: string; signature: string; nonce: string; }>; export declare const setApiBaseUrl: (url: string) => void; export declare const getApiBaseUrl: () => string; export declare const setApiKey: (key: string) => void; export declare const getApiKey: () => string | null; export declare const setProxyUrl: (url: string) => void; export declare const getProxyUrl: () => string | null; export declare const setSecretKey: (key: string) => void; export declare const getSecretKey: () => string | null; export declare const setDebugMode: (debug: boolean) => void; export declare const getDebugMode: () => boolean;