import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; import { BytesLike } from "@ethersproject/bytes"; import { Description } from "@ethersproject/properties"; import { AbiCoder } from "./abi-coder"; import { checkResultErrors, Result } from "./coders/abstract-coder"; import { ConstructorFragment, ErrorFragment, EventFragment, Fragment, FunctionFragment, JsonFragment, ParamType } from "./fragments"; export { checkResultErrors, Result }; export declare class LogDescription extends Description { readonly eventFragment: EventFragment; readonly name: string; readonly signature: string; readonly topic: string; readonly args: Result; } export declare class TransactionDescription extends Description { readonly functionFragment: FunctionFragment; readonly name: string; readonly args: Result; readonly signature: string; readonly sighash: string; readonly value: BigNumber; } export declare class ErrorDescription extends Description { readonly errorFragment: ErrorFragment; readonly name: string; readonly args: Result; readonly signature: string; readonly sighash: string; } export declare class Indexed extends Description { readonly hash: string; readonly _isIndexed: boolean; static isIndexed(value: any): value is Indexed; } export declare class Interface { readonly fragments: ReadonlyArray; readonly errors: { [name: string]: ErrorFragment; }; readonly events: { [name: string]: EventFragment; }; readonly functions: { [name: string]: FunctionFragment; }; readonly structs: { [name: string]: any; }; readonly deploy: ConstructorFragment; readonly _abiCoder: AbiCoder; readonly _isInterface: boolean; constructor(fragments: string | ReadonlyArray); format(format?: string): string | Array; static getAbiCoder(): AbiCoder; static getAddress(address: string): string; static getSighash(fragment: ErrorFragment | FunctionFragment): string; static getEventTopic(eventFragment: EventFragment): string; getFunction(nameOrSignatureOrSighash: string): FunctionFragment; getEvent(nameOrSignatureOrTopic: string): EventFragment; getError(nameOrSignatureOrSighash: string): ErrorFragment; getSighash(fragment: ErrorFragment | FunctionFragment | string): string; getEventTopic(eventFragment: EventFragment | string): string; _decodeParams(params: ReadonlyArray, data: BytesLike): Result; _encodeParams(params: ReadonlyArray, values: ReadonlyArray): string; encodeDeploy(values?: ReadonlyArray): string; decodeErrorData(fragment: ErrorFragment | string, data: BytesLike): Result; encodeErrorData(fragment: ErrorFragment | string, values?: ReadonlyArray): string; decodeFunctionData(functionFragment: FunctionFragment | string, data: BytesLike): Result; encodeFunctionData(functionFragment: FunctionFragment | string, values?: ReadonlyArray): string; decodeFunctionResult(functionFragment: FunctionFragment | string, data: BytesLike): Result; encodeFunctionResult(functionFragment: FunctionFragment | string, values?: ReadonlyArray): string; encodeFilterTopics(eventFragment: EventFragment, values: ReadonlyArray): Array>; encodeEventLog(eventFragment: EventFragment, values: ReadonlyArray): { data: string; topics: Array; }; decodeEventLog(eventFragment: EventFragment | string, data: BytesLike, topics?: ReadonlyArray): Result; parseTransaction(tx: { data: string; value?: BigNumberish; }): TransactionDescription; parseLog(log: { topics: Array; data: string; }): LogDescription; parseError(data: BytesLike): ErrorDescription; static isInterface(value: any): value is Interface; } //# sourceMappingURL=interface.d.ts.map