/** * CLI Authentication Helper * * Provides `--auth` flow: * 1. Opens the Metrx signup/key page in the user's browser * 2. Prompts for the API key via stdin * 3. Validates the key with a ping * 4. Saves to ~/.metrxrc as JSON { "api_key": "sk_live_..." } * * The saved key is read at startup so users don't need to set env vars. */ export declare function getRcPath(): string; export interface RcConfig { api_key?: string; } export declare function readRcFile(): RcConfig | null; /** * Load API key from environment or ~/.metrxrc. * Priority: METRX_API_KEY env var > ~/.metrxrc > null */ export declare function loadApiKey(): string | null; export declare function writeRcFile(apiKey: string): void; export declare function isValidKeyFormat(key: string): boolean; export declare function runAuthFlow(): Promise; //# sourceMappingURL=auth.d.ts.map