UNPKG

doctool

Version:

AI-powered documentation validation and management system

21 lines (20 loc) 584 B
/** * Utility functions for validating API key configuration */ export interface APIKeyValidationResult { isValid: boolean; errorMessage?: string; helpMessage?: string; } /** * Validates that the OpenAI API key is properly configured */ export declare function validateOpenAIKey(): APIKeyValidationResult; /** * Displays a helpful error message and exits if API key is invalid */ export declare function requireValidAPIKey(): void; /** * Displays a warning if API key is not configured but continues execution */ export declare function warnIfNoAPIKey(): boolean;