import React from 'react'; import { TurboModule } from 'react-native'; import { type NativeArg } from '../utils'; export type RNMBEvent = { payload: PayloadType; type: string; }; declare const NativeBridgeComponent: React.Component>(Base: BaseComponent, turboModule: TurboModule) => { new (...args: any[]): { _turboModule: TurboModule; _preRefMapMethodQueue: Array<{ method: { name: string; args: NativeArg[]; }; resolver: (value: NativeArg) => void; }>; _runPendingNativeMethods(nativeRef: RefType): Promise; _runNativeMethod(methodName: string, nativeRef: RefType | undefined, args?: NativeArg[]): Promise; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; render(): React.ReactNode; readonly props: Readonly; state: Readonly<{}>; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; } & BaseComponent; export default NativeBridgeComponent; //# sourceMappingURL=NativeBridgeComponent.d.ts.map