type KeccakFn = (input: Uint8Array) => Uint8Array; type CommonLike = { customCrypto?: { keccak256?: KeccakFn; }; }; export type ReceiptLog = [Uint8Array, Uint8Array[], Uint8Array]; export type TxReceipt = { stateRoot?: Uint8Array; status?: 0 | 1; cumulativeBlockGasUsed: bigint; bitvector: Uint8Array; logs: ReceiptLog[]; }; export type StoredTxReceipt = Omit & { bitvector?: Uint8Array; }; export type TxHashIndex = [blockHash: Uint8Array, txIndex: number]; /** * Ethereum logs bloom filter. */ export declare class Bloom { #private; bitvector: Uint8Array; constructor(bitvector?: Uint8Array, common?: CommonLike); add(value: Uint8Array): void; check(value: Uint8Array): boolean; multiCheck(values: Uint8Array[]): boolean; or(bloom: Bloom): void; } /** * Encode an Ethereum transaction receipt, including EIP-2718 typed receipt prefixes. */ export declare function encodeReceipt(receipt: TxReceipt, txType: number): Uint8Array; export declare function encodeReceiptLogs(logs: readonly ReceiptLog[]): Uint8Array; export declare function decodeReceiptLogs(encoded: Uint8Array): ReceiptLog[]; export declare function encodeStoredReceipts(receipts: readonly StoredTxReceipt[]): Uint8Array; export declare function decodeStoredReceipts(encoded: Uint8Array): StoredTxReceipt[]; export declare function encodeTxHashIndex([blockHash, txIndex]: TxHashIndex): Uint8Array; export declare function decodeTxHashIndex(encoded: Uint8Array): TxHashIndex; export {}; //# sourceMappingURL=receipt.d.ts.map