import { type Address, BaseError, type Chain, type Client, type Hex, type Transport } from "viem"; import type { Prettify } from "../../types"; import type { ENTRYPOINT_ADDRESS_V06_TYPE, EntryPoint } from "../../types/entrypoint"; export type GetSenderAddressParams = entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE ? { initCode: Hex; entryPoint: entryPoint; factory?: never; factoryData?: never; } : { entryPoint: entryPoint; factory: Address; factoryData: Hex; initCode?: never; }; export declare class InvalidEntryPointError extends BaseError { name: string; constructor({ cause, entryPoint }?: { cause?: BaseError; entryPoint?: Address; }); } /** * Returns the address of the account that will be deployed with the given init code. * * - Docs: https://docs.pimlico.io/permissionless/reference/public-actions/getSenderAddress * * @param client {@link Client} that you created using viem's createPublicClient. * @param args {@link GetSenderAddressParams} initCode & entryPoint * @returns Sender's Address * * @example * import { createPublicClient } from "viem" * import { getSenderAddress } from "permissionless/actions" * * const publicClient = createPublicClient({ * chain: goerli, * transport: http("https://goerli.infura.io/v3/your-infura-key") * }) * * const senderAddress = await getSenderAddress(publicClient, { * initCode, * entryPoint * }) * * // Return '0x7a88a206ba40b37a8c07a2b5688cf8b287318b63' */ export declare const getSenderAddress: (client: Client, args: Prettify>) => Promise
; //# sourceMappingURL=getSenderAddress.d.ts.map