/** * An event attribute. * * This is the same attribute type as tendermint34.Attribute and tendermint35.EventAttribute * but `key` and `value` are unified to strings. The conversion * from bytes to string in the Tendermint 0.34 case should be done by performing * [lossy] UTF-8 decoding. * * [lossy]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.from_utf8_lossy */ export interface Attribute { readonly key: string; readonly value: string; } /** * The same event type as tendermint34.Event and tendermint35.Event * but attribute keys and values are unified to strings. The conversion * from bytes to string in the Tendermint 0.34 case should be done by performing * [lossy] UTF-8 decoding. * * [lossy]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.from_utf8_lossy */ export interface Event { readonly type: string; readonly attributes: readonly Attribute[]; } export interface DecodedEventAttribute { key: Uint8Array; value: Uint8Array; index?: boolean; } export interface DecodedEvent { type: string; attributes: DecodedEventAttribute[]; } export declare function decodeEventAttributeValue(value: string, safeFromBase64Fn: (v: string) => Uint8Array): Uint8Array; export declare function decodeEvent(event: any, safeFromBase64Fn: (v: string) => Uint8Array): DecodedEvent; export declare function decodeEvents(events: any[], safeFromBase64Fn: (v: string) => Uint8Array): DecodedEvent[];