import type { UserConfig } from "../types/index.js"; /** Read the user config file; returns null if it doesn't exist. Throws on malformed JSON. */ export declare function readUserConfig(): UserConfig | null; export declare function writeUserConfig(config: UserConfig): void; export declare function onRpcConfigChange(hook: () => void): void; /** Merge a partial update into the existing config (or create a fresh one). */ export declare function patchUserConfig(patch: Partial): UserConfig; export declare function getConfigPath(): string; export declare function getConfigDir(): string; /** Pull the Etherscan API key from env (highest priority) or user config. */ export declare function resolveEtherscanApiKey(userConfig: UserConfig | null): string | undefined; /** Pull the 1inch Developer Portal API key from env or user config; undefined if none set. */ export declare function resolveOneInchApiKey(userConfig: UserConfig | null): string | undefined; /** Pull the WalletConnect project ID from env or user config; undefined if none set. */ export declare function resolveWalletConnectProjectId(userConfig: UserConfig | null): string | undefined;