import type { ABIParameter } from './abi.js'; /** * Decodes the signature of a function from the name and parameters. */ export declare class FunctionSignatureDecoder { private name; private parameters; private includeNames; private separator; constructor(name: string, parameters: ABIParameter[], includeNames?: boolean); /** * Decodes a single function parameter type for the function signature. * @param param - The parameter type to decode. * @returns A string representing the parameter type. */ private getParameterType; /** * Decodes a single function parameter for the function signature. * @param param - The parameter to decode. * @returns A string representing the parameter type and optionally its name. */ private decodeParameter; /** * Decodes all the parameters and build the function signature * @returns The function signature. */ decode(): string; } /** * Decodes a function signature from the name and parameters. * @param name - The name of the function. * @param parameters - The parameters of the function. * @returns - The function signature. */ export declare function decodeFunctionSignature(name: string, parameters: ABIParameter[]): string; /** * Decodes a function signature from the name and parameters including parameter names. * @param name - The name of the function. * @param parameters - The parameters of the function. * @returns - The user-friendly function signature. */ export declare function decodeFunctionSignatureWithParameterNames(name: string, parameters: ABIParameter[]): string; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25fc2lnbmF0dXJlX2RlY29kZXIuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hYmkvZnVuY3Rpb25fc2lnbmF0dXJlX2RlY29kZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsWUFBWSxFQUF3QixNQUFNLFVBQVUsQ0FBQztBQUVuRTs7R0FFRztBQUNILHFCQUFhLHdCQUF3QjtJQUdqQyxPQUFPLENBQUMsSUFBSTtJQUNaLE9BQU8sQ0FBQyxVQUFVO0lBQ2xCLE9BQU8sQ0FBQyxZQUFZO0lBSnRCLE9BQU8sQ0FBQyxTQUFTLENBQVM7SUFDMUIsWUFDVSxJQUFJLEVBQUUsTUFBTSxFQUNaLFVBQVUsRUFBRSxZQUFZLEVBQUUsRUFDMUIsWUFBWSxVQUFRLEVBRzdCO0lBRUQ7Ozs7T0FJRztJQUNILE9BQU8sQ0FBQyxnQkFBZ0I7SUFtQnhCOzs7O09BSUc7SUFDSCxPQUFPLENBQUMsZUFBZTtJQUt2Qjs7O09BR0c7SUFDSSxNQUFNLElBQUksTUFBTSxDQUV0QjtDQUNGO0FBRUQ7Ozs7O0dBS0c7QUFDSCx3QkFBZ0IsdUJBQXVCLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLFVBRS9FO0FBRUQ7Ozs7O0dBS0c7QUFDSCx3QkFBZ0IseUNBQXlDLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLFVBRWpHIn0=