import type { EvmChainViewer } from '@xyo-network/xl1-protocol/protocol-lib';
import type { Provider } from 'ethers';
import type { EvmRpcConnectionConfig } from '../../config/connections/index.js';
import type { CreatableProviderParams } from '../../CreatableProvider/index.js';
import { AbstractCreatableProvider } from '../../CreatableProvider/index.js';
/** Parameters for SimpleEvmChainViewer. */
export interface SimpleEvmChainViewerParams extends CreatableProviderParams {
    /** EVM JSON-RPC connection used to build the provider when one is not injected. */
    connection?: EvmRpcConnectionConfig;
    /** Explicit ethers provider (tests / callers that already hold one). */
    provider?: Provider;
}
/** Builds an ethers provider from an evm-rpc connection config. */
export declare function ethProviderFromEvmRpcConnection(connection: EvmRpcConnectionConfig): Provider;
/** Canonical source of the ethers provider for the process's backing EVM chain. */
export declare class SimpleEvmChainViewer extends AbstractCreatableProvider<SimpleEvmChainViewerParams> implements EvmChainViewer {
    static readonly connectionTypes: readonly ["evm-rpc"];
    static readonly defaultMoniker: "EvmChainViewer";
    static readonly dependencies: never[];
    static readonly monikers: "EvmChainViewer"[];
    static readonly surface: "node";
    moniker: "EvmChainViewer";
    private _provider?;
    createHandler(): Promise<void>;
    provider(): Provider;
}
//# sourceMappingURL=SimpleEvmChainViewer.d.ts.map