import { type DecodeErrorResultReturnType, type Hex } from 'viem'; import { Abis } from 'viem/tempo'; import type { OneOf, UnionOmit } from './types.js'; type AllAbis = typeof Abis.abis; type AbiErrorName = Extract['name']; /** Decoded execution error from a Tempo precompile revert. */ export type ExecutionError = OneOf<(DecodeErrorResultReturnType & { data: Hex; message: string; }) | { errorName: 'unknown'; message: string; }>; /** RPC-serialized execution error (bigints and numbers as hex). */ export type Rpc = UnionOmit; /** Human-readable messages keyed by ABI error name. */ export declare const messages: Record; /** Parse a viem error into a structured execution error. */ export declare function parse(error: Error): ExecutionError; /** Serializes an ExecutionError for RPC transport (bigints/numbers → hex). */ export declare function serialize(preimage: ExecutionError): Rpc; export {}; //# sourceMappingURL=executionError.d.ts.map