/** * Core configuration types and defaults * * Platform-agnostic configuration that can be used across * different runtimes without Node.js-specific dependencies. */ /** * Cache TTL configuration (in milliseconds) */ export interface CacheTtlConfig { search: number; article: number; products: number; toc: number; } /** * HTTP request configuration */ export interface RequestConfig { timeout: number; maxRetries: number; retryDelay: number; rateLimitDelay: number; userAgent: string; } /** * Cache storage configuration */ export interface CacheConfig { maxEntries: number; dir?: string; } /** * CORS configuration for HTTP transport */ export interface CorsConfig { allowedOrigins: string[]; } /** * Combined server configuration */ export interface ServerConfig { version: string; cacheTtl: CacheTtlConfig; request: RequestConfig; cache: CacheConfig; cors?: CorsConfig; } /** * Create a ServerConfig with sensible defaults, allowing partial overrides. * * @param overrides - Partial config to merge over defaults * @returns Complete ServerConfig */ export declare function createDefaultConfig(overrides?: Partial): ServerConfig; //# sourceMappingURL=config.d.ts.map