import type { AbiParameter, AbiSignature } from "../abi.js"; /** * Returns the canonical form of a signature, as used to compute its selector * or topic: its name and input types, without spaces nor parameter names. * * @param signature The parsed signature. * @returns The canonical signature, like `transfer(address,uint256)`. */ export declare function getCanonicalAbiSignature({ name, inputs, }: Pick): string; /** * Returns the keccak256 hash of a signature's canonical form. Its first 4 bytes * are a function's or error's selector, and the whole hash is an event's topic. * * @param signature The parsed signature. * @returns The 32-byte hash. */ export declare function hashCanonicalAbiSignature(signature: Pick): Promise; /** * A parser of human-readable ABI signatures, or of a single parameter of one. * See `parseAbiSignature` for the syntax it accepts. */ export declare class AbiSignatureParser { #private; /** * Splits the input into tokens. Call `parse` to parse it as a signature, or * `parseSingleParameter` to parse it as a parameter. */ constructor(input: string); /** Parses the whole input as a single parameter, like `uint256 amount`. */ parseSingleParameter(): AbiParameter; /** Parses the whole input as a signature, like `transfer(address,uint)`. */ parse(): AbiSignature; } //# sourceMappingURL=abi-signature.d.ts.map