import { Schema } from "effect"; import type { Chain, Transport } from "viem"; import type { ChainConfig } from "../presets/index.js"; export declare const ROUTEMESH_BASE_URL = "https://lb.routeme.sh/rpc"; export type RouteMeshChainEntry = { readonly chainId: number; readonly chain: Chain; }; export type RouteMeshConfig = { readonly apiKey: string; readonly chains: readonly RouteMeshChainEntry[]; }; export type RouteMeshFallbackChainEntry = RouteMeshChainEntry & { readonly fallbackUrls?: readonly string[]; }; declare const RouteMeshApiKeyMissingError_base: Schema.TaggedErrorClass; } & { message: typeof Schema.String; }>; export declare class RouteMeshApiKeyMissingError extends RouteMeshApiKeyMissingError_base { } export declare const routemeshUrl: (chainId: number, apiKey: string) => string; export declare const routemeshRpc: (chainId: number) => ((apiKey: string) => string); export declare const routemeshToChainConfigs: (config: RouteMeshConfig) => ChainConfig[]; export declare const routemeshWithFallback: (chainId: number, apiKey: string, fallbackUrls: readonly string[]) => string[]; export declare const makeRouteMeshTransports: (apiKey: string, chains: readonly RouteMeshFallbackChainEntry[]) => Record; export {}; //# sourceMappingURL=routemesh.d.ts.map