import type { Abi } from 'abitype'; import { type AbiFunctionNotFoundErrorType } from '../../errors/abi.js'; import type { GetFunctionArgs, InferFunctionName } from '../../types/contract.js'; import { type ConcatHexErrorType } from '../data/concat.js'; import { type GetFunctionSelectorErrorType } from '../hash/getFunctionSelector.js'; import type { ErrorType } from '../../errors/utils.js'; import { type EncodeAbiParametersErrorType } from './encodeAbiParameters.js'; import { type FormatAbiItemErrorType } from './formatAbiItem.js'; import { type GetAbiItemErrorType } from './getAbiItem.js'; export type EncodeFunctionDataParameters> = { functionName?: _FunctionName; } & (TFunctionName extends string ? { abi: TAbi; } & GetFunctionArgs : _FunctionName extends string ? { abi: [TAbi[number]]; } & GetFunctionArgs : never); export type EncodeFunctionDataErrorType = AbiFunctionNotFoundErrorType | ConcatHexErrorType | EncodeAbiParametersErrorType | FormatAbiItemErrorType | GetAbiItemErrorType | GetFunctionSelectorErrorType | ErrorType; export declare function encodeFunctionData({ abi, args, functionName, }: EncodeFunctionDataParameters): `0x${string}`; //# sourceMappingURL=encodeFunctionData.d.ts.map