/** * Architecture Pattern Configuration * * Pattern database for detecting server architecture characteristics including: * - Database backends (Neo4j, MongoDB, PostgreSQL, etc.) * - Transport modes (stdio, HTTP, SSE) * - Network access requirements * * Created as part of Issue #57: Architecture detection and behavior inference modules */ /** * Database backend types detected from patterns */ export type DatabaseBackend = "neo4j" | "mongodb" | "sqlite" | "postgresql" | "mysql" | "redis" | "dynamodb" | "firestore" | "supabase" | "cassandra" | "elasticsearch" | "unknown"; /** * Transport mode capabilities */ export type TransportMode = "stdio" | "http" | "sse"; /** * Server architecture classification */ export type ServerArchitectureType = "local" | "hybrid" | "remote"; /** * Database detection patterns. * Each database has multiple patterns to catch various naming conventions. */ export declare const DATABASE_PATTERNS: Record, RegExp[]>; /** * Transport detection patterns. * Used to identify which transport modes a server supports. */ export declare const TRANSPORT_PATTERNS: Record; /** * Network access indicators. * Patterns that suggest the server requires network/internet access. */ export declare const NETWORK_INDICATORS: RegExp[]; /** * Local-only indicators. * Patterns that suggest the server operates locally without network. */ export declare const LOCAL_ONLY_INDICATORS: RegExp[]; /** * External service detection patterns. * Maps service names to URL/import patterns. */ export declare const EXTERNAL_SERVICE_PATTERNS: Record; /** * Architecture pattern configuration interface. * Allows customization of all pattern categories. */ export interface ArchitecturePatternConfig { databases: Record; transports: Record; networkIndicators: RegExp[]; localOnlyIndicators: RegExp[]; externalServices: Record; } /** * Get default architecture patterns configuration. */ export declare function getDefaultArchitecturePatterns(): ArchitecturePatternConfig; /** * Detect database backends from text content. * Searches for patterns in tool descriptions, source code, or package.json. * * @param content - Text content to search (description, source code, etc.) * @returns Array of detected database backends with match evidence */ export declare function detectDatabasesFromContent(content: string): Array<{ backend: DatabaseBackend; evidence: string; confidence: "high" | "medium" | "low"; }>; /** * Detect transport modes from text content. * * @param content - Text content to search * @returns Array of detected transport modes */ export declare function detectTransportsFromContent(content: string): TransportMode[]; /** * Check if content indicates network access requirements. * * @param content - Text content to search * @returns Object with network access flag and matched indicators */ export declare function checkNetworkAccess(content: string): { requiresNetwork: boolean; indicators: string[]; localOnly: boolean; localIndicators: string[]; }; /** * Detect external services from content. * * @param content - Text content to search * @returns Array of detected service names */ export declare function detectExternalServices(content: string): string[]; //# sourceMappingURL=architecturePatterns.d.ts.map