import { type ClientConfig, type Client as viem_Client } from 'viem'; import type * as Chains from '../core/Chains.js'; import type { Internal } from '../core/internal/porto.js'; import * as Transport from '../core/Transport.js'; import type * as Account from './Account.js'; import type * as RpcSchema from './RpcSchema.js'; export type RelayClient = viem_Client; /** * Extracts a Viem Client from a Porto instance, and an optional chain ID. * By default, the Client for the current chain ID will be extracted. * * @param porto - Porto instance. * @param parameters - Parameters. * @returns Client. */ export declare function fromPorto(porto: { _internal: Internal; }, config?: fromPorto.Config): RelayClient; export declare namespace fromPorto { type Config = Pick, 'account' | 'cacheTime' | 'key' | 'name' | 'pollingInterval'> & { chainId?: chains[number]['id'] | undefined; }; } //# sourceMappingURL=RelayClient.d.ts.map