import { type Chain, type Client, type FallbackTransport, type PublicActions, type PublicClient, type PublicClientConfig, type PublicRpcSchema, type Transport } from "viem"; import { type BundlerActions, type BundlerRpcSchema } from "./decorators/bundlerClient.js"; export type BundlerClient = Client & BundlerActions>; /** * Creates a bundler client from an existing public client with the provided transport and chain. * * @example * ```ts * import { createPublicClient } from "viem"; * import { createBundlerClientFromExisting } from "@aa-sdk/core"; * * const publicClient = createPublicClient(...); * const bundlerClient = createBundlerClientFromExisting(publicClient); * ``` * * @param {PublicClient} client The existing public client to be extended with bundler actions * @returns {BundlerClient} A bundler client that extends the functionality of the provided public client */ export declare const createBundlerClientFromExisting: (client: PublicClient) => BundlerClient; /** * Creates a PublicClient with methods for calling Bundler RPC methods * * @param {PublicClientConfig & { type?: string }} args - configuration for the client * @returns {BundlerClient} a PublicClient with methods for calling Bundler RPC methods */ export declare function createBundlerClient(args: PublicClientConfig & { type?: string; }): BundlerClient;