import type { Chain } from '../chains.js'; import type { Transport } from 'viem'; export interface TransportFactoryParams { /** Required chain ID for the transport */ chainId: number; } /** * Configuration parameters for creating a wagmi config with transport factory. */ type CreateConfigParams = { /** Array of blockchain chains to support. Must contain at least one chain. */ chains: Chain[]; /** Factory function that creates a transport for a given chain ID. */ transportFactory: (params: TransportFactoryParams) => Transport; }; /** * Creates a wagmi configuration with fallback transport support for multiple chains. * * @param params - Configuration parameters including chains and transport factory * @returns Wagmi configuration object ready for use with clients * @throws Will throw an error when chains array is empty * * @example * ```typescript * const config = createConfig({ * chains: [chains.ETH_SEPOLIA, chains.MATIC_AMOY], * transportFactory: ({ chainId }) => circleWalletsTransport({ * apiKey: 'your-api-key', * entitySecret: 'your-entity-secret', * chainId * }) * }) * ``` */ export declare function createConfig(params: CreateConfigParams): import("@wagmi/core").Config<[Chain, ...Chain[]], Record, readonly import("@wagmi/core").CreateConnectorFn[]>; export {};