import type { AnyJson, Codec } from '@polkadot/types-codec/types'; import type { TypeDef } from '@polkadot/types-create/types'; import type { EventMetadataLatest } from '../interfaces/metadata/index.js'; import type { EventId } from '../interfaces/system/index.js'; import type { IEvent, IEventData, Registry } from '../types/index.js'; import { Struct, Tuple } from '@polkadot/types-codec'; /** * @name GenericEventData * @description * Wrapper for the actual data that forms part of an [[Event]] */ export declare class GenericEventData extends Tuple implements IEventData { #private; constructor(registry: Registry, value: Uint8Array, meta: EventMetadataLatest, section?: string, method?: string); /** * @description The wrapped [[EventMetadata]] */ get meta(): EventMetadataLatest; /** * @description The method as a string */ get method(): string; /** * @description The field names (as available) */ get names(): string[] | null; /** * @description The section as a string */ get section(): string; /** * @description The [[TypeDef]] for this event */ get typeDef(): TypeDef[]; /** * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information */ toHuman(isExtended?: boolean, disableAscii?: boolean): AnyJson; } /** * @name GenericEvent * @description * A representation of a system event. These are generated via the [[Metadata]] interfaces and * specific to a specific Substrate runtime */ export declare class GenericEvent extends Struct implements IEvent { constructor(registry: Registry, _value?: Uint8Array); /** * @description The wrapped [[EventData]] */ get data(): IEvent['data']; /** * @description The [[EventId]], identifying the raw event */ get index(): EventId; /** * @description The [[EventMetadata]] with the documentation */ get meta(): EventMetadataLatest; /** * @description The method string identifying the event */ get method(): string; /** * @description The section string identifying the event */ get section(): string; /** * @description The [[TypeDef]] for the event */ get typeDef(): TypeDef[]; /** * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information */ toHuman(isExpanded?: boolean, disableAscii?: boolean): Record; }