UNPKG

pmarket-cli

Version:
27 lines (26 loc) 780 B
import { ApiKeyCreds } from "@polymarket/clob-client"; export declare class ConfigService { private config; private credentials; private configDir; private configPath; private credentialsPath; constructor(); private ensureConfigDir; private loadOrCreateConfig; private loadCredentials; isConfigAvailable(): boolean; getPrivateKey(): string; getRpcProvider(): string; getFunderAddress(): string; hasCredentials(): boolean; getCreds(): ApiKeyCreds | null; saveCredentials(apiKey: string, apiSecret: string, passphrase: string): void; savePrivateKey(privateKey: string): { success: boolean; address?: string; error?: string; }; getConfigDir(): string; getConfigPath(): string; }