export function advance(blocks: API.BlockFetcher, head: API.EventLink[], event: API.EventLink): Promise[]>; /** * @template T * @extends {Block, typeof cbor.code, typeof sha256.code, 1>} * @implements {API.EventBlockView} */ export class EventBlock extends Block, 113, 18, 1> implements API.EventBlockView { /** * @template T * @param {T} data * @param {API.EventLink[]} [parents] */ static create(data: T_1, parents?: API.EventLink[]): Promise>; /** * @param {object} config * @param {API.EventLink} config.cid * @param {Event} config.value * @param {Uint8Array} config.bytes * @param {string} config.prefix */ constructor({ cid, value, bytes, prefix }: { cid: API.EventLink; value: Event; bytes: Uint8Array; prefix: string; }); prefix: string; } /** @template T */ export class EventFetcher { /** @param {API.BlockFetcher} blocks */ constructor(blocks: API.BlockFetcher); /** @private */ private _blocks; /** * @param {API.EventLink} link * @returns {Promise>} */ get(link: API.EventLink): Promise>; } export function encodeEventBlock(value: API.EventView): Promise>; export function decodeEventBlock(bytes: Uint8Array): Promise>; export function vis(blocks: API.BlockFetcher, head: API.EventLink[], options?: { renderNodeLabel?: ((b: API.EventBlockView) => string) | undefined; }): AsyncGenerator; import * as API from './api.js'; import { Block } from 'multiformats/block'; //# sourceMappingURL=index.d.ts.map