import { NativeModule } from 'expo-modules-core'; import { HttpRequest, HttpResponse, NetworkConfig, HttpRequestType } from './networkConfig'; export type NetworkModuleEvents = { onPreprocessHttpRequest: ({ nativeId, requestId, type, request, }: { nativeId: string; requestId: string; type: HttpRequestType; request: HttpRequest; }) => void; onPreprocessHttpResponse: ({ nativeId, responseId, type, response, }: { nativeId: string; responseId: string; type: HttpRequestType; response: HttpResponse; }) => void; }; /** * Native NetworkModule using Expo modules API. * Provides modern async/await interface while maintaining backward compatibility. */ declare class NetworkModule extends NativeModule { initializeWithConfig(nativeId: string, config: NetworkConfig): Promise; destroy(nativeId: string): Promise; setPreprocessedHttpRequest(requestId: string, request: HttpRequest): Promise; setPreprocessedHttpResponse(responseId: string, response: HttpResponse): Promise; } declare const _default: NetworkModule; export default _default; //# sourceMappingURL=networkModule.d.ts.map