/** * NoSQL - Environment Types * * Type definitions for Cloudflare Workers environment bindings * and configuration variables. */ /** * Cloudflare Workers environment bindings and variables */ export interface Env { ENVIRONMENT: 'development' | 'staging' | 'production' | 'test'; API_VERSION: string; MAX_VECTOR_DIMENSION: string; DEFAULT_SIMILARITY_THRESHOLD: string; LOG_LEVEL: 'debug' | 'info' | 'warn' | 'error'; METADATA_KV: KVNamespace; VECTORS_R2: R2Bucket; DB: D1Database; AI: Ai; VECTOR_INDEX: DurableObjectNamespace; CACHE?: KVNamespace; } /** * Environment validation result */ export interface EnvValidationResult { isValid: boolean; errors: string[]; } /** * Runtime configuration derived from environment */ export interface RuntimeConfig { environment: Env['ENVIRONMENT']; apiVersion: string; maxVectorDimension: number; defaultSimilarityThreshold: number; logLevel: Env['LOG_LEVEL']; } //# sourceMappingURL=env.d.ts.map