import { NotificationRequest } from './jsonrpc'; export type EventCallback = (data?: Record) => void | Promise; export type EventsDefinition = ReadonlyArray; export declare class Event { readonly module: string; readonly name: string; readonly data?: Record; constructor(name: string, data?: Record); static fromJSONRPCNotification(data: NotificationRequest | string): Event; toJSONRPCNotification(): NotificationRequest; key(): string; }