import { type Account, BaseError, type Chain, type Hash, type Hex, type Transport } from "viem"; import type { EntryPoint, GetAccountParameterWithClient, GetEntryPointVersion } from "../types"; import type { UserOperation } from "../types/userOperation"; export type SignUserOperationHashWithECDSAParams = GetAccountParameterWithClient & ({ hash: Hash; userOperation?: undefined; entryPoint?: undefined; chainId?: undefined; } | { hash?: undefined; userOperation: UserOperation>; entryPoint: entryPoint; chainId: number; }); export declare class AccountOrClientNotFoundError extends BaseError { name: string; constructor({ docsPath }?: { docsPath?: string; }); } /** * * Returns signature for user operation. It signs over user operation hash. * If you have a custom way of signing user operation hash, you can use this function to sign it with ECDSA. * * - Docs: https://docs.pimlico.io/permissionless/reference/utils/signUserOperationHashWithECDSA * * @param signer: owner as {@link Client} * @param params: account & (userOperation, entryPoint, chainId) | hash to sign * @returns signature as {@link Hash} * * @example * import { signUserOperationHashWithECDSA } from "permissionless/utils" * * const userOperationSignature = signUserOperationHashWithECDSA(owner, { * userOperation, * entryPoint, * chainId * }) * * // Returns "0x7d9ae17d5e617e4bf3221dfcb69d64d824959e5ae2ef7078c6ddc3a4fe26c8301ab39277c61160dca68ca90071eb449d9fb2fbbc78b3614d9d7282c860270e291c" * */ export declare const signUserOperationHashWithECDSA: ({ client, account: account_, hash, userOperation, chainId, entryPoint: entryPointAddress }: SignUserOperationHashWithECDSAParams) => Promise; //# sourceMappingURL=signUserOperationHashWithECDSA.d.ts.map