export type DeeptradeNetwork = "mainnet" | "testnet"; export type DeeptradeProvider = "surflux"; export interface DeeptradePaths { dirPath: string; configPath: string; } export interface DeeptradeAccount { privateKey: string; address: string; } interface SurfluxConfig { readApiKey?: string; streamApiKeys?: Record; baseUrls?: Partial>; streamBaseUrls?: Partial>; } interface ProviderConfig { surflux?: SurfluxConfig; } export interface DeeptradeConfig { version: 3; network: DeeptradeNetwork; provider: DeeptradeProvider; privateKey?: string; address?: string; activeAccountAlias?: string; accounts?: Record; tradeCap?: string; rpcUrls?: Partial>; providers?: ProviderConfig; } export declare function parseDeeptradeAccountAlias(input: string): string; export declare function deriveAddressFromPrivateKey(privateKeyInput: string): string; export declare function resolveActiveDeeptradeAccount(config: DeeptradeConfig): { alias: string; privateKey: string; address: string; } | undefined; export declare function listDeeptradeAccounts(config: DeeptradeConfig): Array<{ alias: string; address: string; isActive: boolean; }>; export declare function parseDeeptradeNetwork(input: string): DeeptradeNetwork; export declare function parseDeeptradeProvider(input: string): DeeptradeProvider; export declare function getDeeptradePaths(homeDir?: string): DeeptradePaths; export declare function ensureDeeptradeConfig(homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function readDeeptradeConfig(homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function writeDeeptradeConfig(config: DeeptradeConfig, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setDeeptradeNetwork(networkInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setDeeptradeProvider(providerInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setDeeptradeAddress(addressInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setDeeptradeTradeCap(tradeCapInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setDeeptradeActiveAccount(aliasInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; alias: string; address: string; }; export declare function importDeeptradePrivateKey(privateKeyInput: string, homeDir?: string, aliasInput?: string, activate?: boolean): { paths: DeeptradePaths; config: DeeptradeConfig; alias: string; address: string; }; export declare function setDeeptradeRpcUrl(networkInput: string, rpcUrlInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setSurfluxReadApiKey(apiKeyInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; }; export declare function setSurfluxStreamApiKey(poolInput: string, apiKeyInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; poolName: string; }; export declare function setSurfluxBaseUrl(networkInput: string, urlInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; network: DeeptradeNetwork; }; export declare function setSurfluxStreamBaseUrl(networkInput: string, urlInput: string, homeDir?: string): { paths: DeeptradePaths; config: DeeptradeConfig; network: DeeptradeNetwork; }; export declare function resolveProviderName(explicitValue: string | undefined, config: DeeptradeConfig): DeeptradeProvider; export declare function resolveProviderRestBaseUrl(network: DeeptradeNetwork, config: DeeptradeConfig, explicitValue?: string): string; export declare function resolveProviderStreamBaseUrl(network: DeeptradeNetwork, config: DeeptradeConfig, explicitValue?: string): string; export declare function resolveRpcUrl(network: DeeptradeNetwork, explicitValue: string | undefined, config: DeeptradeConfig): string; export declare function getSurfluxReadApiKeyFromConfig(config: DeeptradeConfig): string | undefined; export declare function getSurfluxStreamApiKeyFromConfig(config: DeeptradeConfig, poolInput: string): { poolName: string; apiKey?: string; }; export declare function resolveDefaultAddress(config: DeeptradeConfig, explicitValue?: string): string | undefined; export declare function resolveDefaultTradeCap(config: DeeptradeConfig, explicitValue?: string): string | undefined; export declare function resolveDefaultPrivateKey(config: DeeptradeConfig, explicitValue?: string): string | undefined; export {};