import type { Account, Chain, Client, PublicClientConfig, Transport } from "viem"; import type { BundlerRpcSchema } from "../types/bundler"; import type { EntryPoint } from "../types/entrypoint"; import { type BundlerActions } from "./decorators/bundler"; export type BundlerClient = Client, BundlerActions>; /** * Creates a EIP-4337 compliant Bundler Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html). * * - Docs: https://docs.pimlico.io/permissionless/reference/clients/bundlerClient * * A Bundler Client is an interface to "erc 4337" [JSON-RPC API](https://eips.ethereum.org/EIPS/eip-4337#rpc-methods-eth-namespace) methods such as sending user operation, estimating gas for a user operation, get user operation receipt, etc through Bundler Actions. * * @param config - {@link PublicClientConfig} * @returns A Bundler Client. {@link BundlerClient} * * @example * import { createPublicClient, http } from 'viem' * import { mainnet } from 'viem/chains' * * const bundlerClient = createBundlerClient({ * chain: mainnet, * transport: http(BUNDLER_URL), * }) */ export declare const createBundlerClient: (parameters: { batch?: { multicall?: boolean | { batchSize?: number | undefined; wait?: number | undefined; } | undefined; } | undefined; cacheTime?: number | undefined; ccipRead?: false | { request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined; } | undefined; chain?: Chain | chain | undefined; key?: string | undefined; name?: string | undefined; pollingInterval?: number | undefined; transport: transport; } & { entryPoint: entryPoint; }) => BundlerClient; //# sourceMappingURL=createBundlerClient.d.ts.map