@koia-ai/koia-eshop-sdk
Version:
A configurable React context provider for e-commerce functionality with cart management, discount codes, order processing, and API client for product management
20 lines • 689 B
TypeScript
/**
* Hook to create and manage an EshopClient instance with API key authentication
* @param apiKey - API key for authentication
* @param baseUrl - Base URL for API endpoints (optional, defaults to localhost:3000)
* @returns Object with getProducts method
*/
export declare const useEshopClient: (apiKey: string, baseUrl?: string) => {
getProducts: (organizationId: string) => Promise<{
data: import("..").Product[] | undefined;
error: string | undefined;
} | {
error: string;
data?: undefined;
}>;
testConnection: () => Promise<{
success: boolean;
error?: string;
}>;
};
//# sourceMappingURL=useEshopClient.d.ts.map