/** * Environment variable loading * * Variable naming conventions: * - CLOUDFLARE_* - Standard wrangler/Cloudflare CLI variables * - CF_* - Shorter aliases for runtime use in Workers * - INDEXER_* - Indexer-specific configuration * - GITHUB_TOKEN - GitHub personal access token for private repos * * The indexer CLI accepts both conventions for flexibility, but * CLOUDFLARE_ACCOUNT_ID is preferred as it matches wrangler's convention. */ export interface EnvConfig { /** Cloudflare account ID */ accountId?: string; /** Cloudflare API token */ apiToken?: string; /** GitHub personal access token */ githubToken?: string; /** Enable LLM-based content processing for web sources */ useLLM: boolean; /** Cloudflare Workers AI model for content extraction */ llmModel: string; /** Request timeout for LLM processing (ms) */ llmTimeout: number; /** Concurrency for LLM processing */ llmConcurrency: number; /** Chat API URL for cache invalidation */ chatApiUrl?: string; /** Token for cache invalidation endpoint */ cacheInvalidateToken?: string; } /** * Create a safe version of EnvConfig for logging. * Redacts sensitive values to prevent credential exposure in logs/errors. * * @param config - The environment config to redact * @returns A copy with sensitive values replaced with [REDACTED] */ export declare function redactEnvConfig(config: EnvConfig): Record; /** * Load environment variables from .env file and process.env * * Searches for .env file in current directory and parent directories, * allowing the CLI to be run from any subdirectory in the monorepo. * * Supported variables: * - CLOUDFLARE_ACCOUNT_ID (preferred) or CF_ACCOUNT_ID - Cloudflare account ID * - CLOUDFLARE_API_TOKEN - API token with Vectorize and AI permissions * - GITHUB_TOKEN - GitHub personal access token for private repos * - INDEXER_USE_LLM - Enable LLM processing (default: true) * - INDEXER_LLM_MODEL - Workers AI model to use * - INDEXER_LLM_TIMEOUT - Request timeout in ms * - INDEXER_LLM_CONCURRENCY - Number of parallel LLM requests */ export declare function loadEnv(): EnvConfig; //# sourceMappingURL=env.d.ts.map