import type { AURAConfig } from "./types.aura.js"; /** * API Key validation result from the status endpoint */ export interface ApiKeyValidationResult { success: boolean; owner_name: string | null; owner_id: string; plan_status: string; start_date: string; expired_date: string; renewal_price: number; } /** * Path to store the activated status file */ export declare function getActivatedFilePath(): string; /** * Check if API key validation is required and validated */ export declare function isApiKeyValidated(cfg: AURAConfig): boolean; /** * Check if API key is currently activated (checked via file) */ export declare function isApiKeyActivated(): Promise; /** * Save API key activation status to file */ export declare function saveApiKeyActivation(result: ApiKeyValidationResult): Promise; /** * Enforce API key validation on startup * This should be called early in the CLI execution */ export declare function enforceStartupApiKeyValidation(): Promise; /** * Service for validating API keys against the external API */ export declare class ApiKeyValidator { private static readonly STATUS_URL; /** * Validate an API key against the external status endpoint */ static validateKey(apiKey: string): Promise; /** * Validate and save the API key status */ static validateAndSave(apiKey: string): Promise; /** * Check if a validated key is still active (not expired) */ static isKeyActive(validationResult: ApiKeyValidationResult): boolean; /** * Validate API key from current configuration * This is intended to be run by background jobs */ static validateFromConfig(): Promise; }