import type { Cell } from '@ton/core'; import type { PhoebeEvent } from './definitions'; /** * Decode an event body cell. Returns `null` if the opcode is not a known * Phoebe event. * * @example * const ev = tryDecodeEvent(externalOutBody); * if (ev?.kind === 'SnapshotPushed') { * console.log(`root ${ev.root.toString(16)} from ${ev.submitter}`); * } */ export declare function tryDecodeEvent(body: Cell): PhoebeEvent | null; /** * Decode an event body cell. Throws if the opcode is unknown — use this * in indexers where you control the source and an unknown opcode means * a bug. * * @throws Error when the leading 32-bit opcode is not a recognised Phoebe event. */ export declare function decodeEvent(body: Cell): PhoebeEvent; /** * Convenience: pass an array of external-out body cells (e.g. from a tx) * and decode all known ones. Silently drops unknown opcodes. */ export declare function decodeEvents(bodies: readonly Cell[]): PhoebeEvent[];