import { EmitterSubscription, NativeEventEmitter, NativeModules } from 'react-native'; import { LogContext } from '../logger'; import { AdaptyType } from '../coders/parse'; export declare class NativeRequestHandler { _module: (typeof NativeModules)[string]; _request: (method: Method, params: Record) => Promise; _emitter: NativeEventEmitter; _listeners: Set; constructor(moduleName: string); request(method: Method, params: Params, resultType: AdaptyType, ctx?: LogContext): Promise; addRawEventListener void | Promise>(event: Event, cb: Cb): EmitterSubscription; addEventListener(event: Event, cb: (this: { rawValue: any; }, data: CallbackData) => void | Promise): EmitterSubscription; removeAllEventListeners(): void; } //# sourceMappingURL=native-request-handler.d.ts.map