import { LocalServices } from '../../types'; import { DbConnection } from '../db'; export interface BlockModel { id: number; number: number; hash: string; timestamp: string; } export declare function getBlock({ tx }: LocalServices, blockHash: string): Promise; export declare function getBlockById({ tx }: LocalServices, id: number): Promise; export declare function getBlockByNumber(c: DbConnection, id: number): Promise; export declare function getBlockByIdOrDie({ tx }: LocalServices, id: number): Promise; export declare function getBlockRange({ tx }: LocalServices, start: number, end: number): Promise;