import { TAbiInput, TAbiItem, TAbiOutput } from 'dequanto/types/TAbi'; import { ParamType } from './fragments'; import { TEth } from 'dequanto/models/TEth'; export declare namespace $abi { type TAbiType = string | ParamType | TAbiInput; type TDecodeOptions = { loose?: boolean; dynamic?: boolean; }; export function encode(types: TAbiType, values: any): TEth.Hex; export function encode(types: TAbiType[], values: any[]): TEth.Hex; export function decode(types: TAbiType, hex: string, opts?: TDecodeOptions): any; export function decode(types: TAbiType[], hex: string, opts?: TDecodeOptions): any[]; export function encodeCall(abi: string | TAbiItem, params?: any[]): TEth.Hex; export function decodeReturn(abi: string | TAbiItem | TAbiOutput[], hex: string): T; export {}; }