export interface SSEEvent { id?: string; event?: string; data: string; } export interface TurboSSEOptions { /** The HTTP Method to use. Defaults to 'GET'. */ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; /** Optional HTTP headers to include in the request. */ headers?: Record; /** Optional request body, useful for POST requests. */ body?: string; /** Milliseconds to wait to establish the native TCP connection (Android only). */ connectTimeoutMs?: number; /** Milliseconds to wait between incoming chunks before terminating a dead connection. */ readTimeoutMs?: number; /** Enable detailed console logs for debugging. */ debug?: boolean; } export declare const ReadyState: { readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; export type ReadyState = (typeof ReadyState)[keyof typeof ReadyState]; //# sourceMappingURL=types.d.ts.map