import type { XenarchConfig } from "./types.js"; export declare function ensureConfigDir(): Promise; export interface LoadConfigResult { config: XenarchConfig; walletCreated?: { address: string; }; } export declare function loadConfig(): Promise; /** * Generate a new wallet and save it to ~/.xenarch/wallet.json. * Returns the address. Private key never leaves the local machine. */ export declare function generateWallet(): Promise<{ address: string; privateKey: string; }>; /** * Get the wallet address derived from the configured private key. * Replaces the old `createSigner()` ethers helper — payment signing is * now handled inside `payAndFetch` via viem + x402-fetch. */ export declare function getWalletAddress(config: XenarchConfig): string; /** * Persist a SIWE session to ~/.xenarch/config.json (snake_case, so the * Xenarch CLI reads the same session). Merges into the existing config — * preserves the wallet/privateKey and every other key. XEN-411. */ export declare function saveSession(sessionToken: string, sessionExpiresAt: string): Promise; //# sourceMappingURL=config.d.ts.map