import { SubscriptionData } from './rpc'; import { RawBlock, RawLog, RawSyncingState } from './raw-entities'; import { Data } from './primitives'; export interface SubscriptionEvent { method: M; data: SubscriptionData; } export declare type NewHeadsEvent = SubscriptionEvent<'newHeads', RawBlock>; export declare type LogsEvent = SubscriptionEvent<'logs', RawLog>; export declare type NewPendingTransactionsEvent = SubscriptionEvent<'newPendingTransactions', Data>; export declare type SyncingEvent = SubscriptionEvent<'syncing', RawSyncingState>; export declare type RpcSubscriptionEvent = NewHeadsEvent | LogsEvent | NewPendingTransactionsEvent | SyncingEvent;