UNPKG

capacitor-cors-bypass-enhanced

Version:

Enhanced Capacitor plugin for CORS bypass with HTTP/2, HTTP/3, gRPC, GraphQL, file operations, and advanced networking features. Modular TypeScript definitions for better maintainability.

29 lines 859 B
import type { StreamRequestOptions } from '../definitions'; /** * Stream Manager * Handles streaming HTTP requests with CORS bypass */ export declare class StreamManager { private proxyServerUrl; private streamControllers; private streamCounter; private notifyListeners; constructor(proxyServerUrl: string | null, notifyListeners: (eventName: string, data: any) => void); /** * Make a streaming HTTP request - supports AI model streaming output */ streamRequest(options: StreamRequestOptions): Promise<{ streamId: string; }>; /** * Cancel a streaming request */ cancelStream(options: { streamId: string; }): Promise<void>; /** * Get all active stream controllers */ getStreamControllers(): Map<string, AbortController>; } //# sourceMappingURL=stream.d.ts.map