UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

54 lines 1.6 kB
/** * Cloud Synchronization Module * * Handles communication with Cloudflare Workers for: * - User verification * - Usage synchronization * - Subscription management * * Implements adaptive verification to minimize API calls */ /** * Initialize the cloud sync module */ export declare function initialize(userId: string, installationId: string): Promise<void>; /** * Start the verification timer * This implements the adaptive verification approach */ export declare function startVerificationTimer(): void; /** * Stop the verification timer */ export declare function stopVerificationTimer(): void; /** * Determine if verification should run based on subscription tier * This implements the adaptive verification approach */ export declare function shouldRunVerification(): Promise<boolean>; /** * Verify subscription status with Cloudflare Worker */ export declare function verifySubscription(force?: boolean): Promise<any>; /** * Synchronize usage data with Cloudflare Worker */ export declare function syncUsageData(): Promise<any>; /** * Generate a checkout URL for subscription */ export declare function getCheckoutUrl(tier: string): Promise<string>; /** * Force an immediate verification and sync * This is used when the user manually requests verification */ export declare function forceVerification(): Promise<any>; /** * Set the API endpoint for the Cloudflare Worker */ export declare function setApiEndpoint(endpoint: string): void; /** * Get the current configuration */ export declare function getConfig(): any; //# sourceMappingURL=cloudSync.d.ts.map