import { NativeEventEmitter, NativeModulesStatic } from 'react-native';
import { EGrpcStreamMethods, EGrpcSyncMethods } from './types';
import { Result } from './result';
declare class GrpcAction {
    private readonly lnd;
    readonly lndEvent: NativeEventEmitter;
    private static streamCounter;
    constructor(lndModule: NativeModulesStatic);
    checkGrpcReady(): Promise<void>;
    sendCommand(method: EGrpcSyncMethods, buffer: Uint8Array): Promise<Uint8Array>;
    private generateStreamId;
    sendStreamCommand(method: EGrpcStreamMethods, buffer: Uint8Array, onUpdate: (res: Result<Uint8Array, Error>) => void, onDone: (res: Result<boolean, Error>) => void): void;
}
export default GrpcAction;
