UNPKG

@chipi-stack/nextjs

Version:

Chipi SDK for Next.js applications with server-side support

23 lines (20 loc) 736 B
import { ChipiServerSDK } from './ChipiServerSDK.mjs'; import { ChipiServerConfig } from './types.mjs'; import '@chipi-stack/types'; import '@chipi-stack/backend'; /** * Create or get the Chipi server instance * This ensures a singleton pattern for server-side operations * Uses only the passed config (no environment variable fallbacks) */ declare function createChipiServer(config: ChipiServerConfig): ChipiServerSDK; /** * Get the current server instance * Throws an error if no instance has been created */ declare function getChipiServer(): ChipiServerSDK; /** * Reset the server instance (useful for testing) */ declare function resetChipiServer(): void; export { createChipiServer, getChipiServer, resetChipiServer };