/** * Find the project root by examining the module path. * This works reliably in all environments including Claude Desktop App. * * In runtime (ESM environment): Uses import.meta.url to get the actual file location * In test environment: Falls back to process.cwd() with directory traversal */ export declare function getProjectRootPath(): string; /** * Configuration interface for the MCP server */ export interface McpServerConfig { /** Server name from package.json */ name: string; /** Server version from package.json */ version: string; /** Server description from package.json */ description: string; /** Logging level (debug, info, warn, error) */ logLevel: string; /** Path to log file (if not specified, logs go to stderr) */ logFilePath?: string; /** Path to resource directories */ resourcePaths: { /** Path to API specifications */ spec: string; /** Path to code snippets */ snippet: string; /** Path to instructions */ instruct: string; }; /** ServiceNow SDK CLI configuration */ servicenowSdk: { /** Path to ServiceNow SDK CLI */ cliPath: string; /** Default timeout for SDK CLI commands in milliseconds */ commandTimeoutMs: number; }; /** Sampling configuration for AI-powered features */ sampling: { /** Enable AI-powered error analysis using MCP Sampling capability */ enableErrorAnalysis: boolean; /** Minimum error length to trigger analysis (avoid analyzing trivial errors) */ minErrorLength: number; }; } /** * Default configuration for the MCP server */ export declare const defaultConfig: McpServerConfig; /** * Get the configuration for the MCP server * Loads from environment variables if available, falls back to defaults */ export declare function getConfig(): McpServerConfig; /** * Validate that the configuration is valid * @param config Configuration object to validate * @returns True if the configuration is valid, false otherwise */ export declare function validateConfig(config: McpServerConfig): boolean; //# sourceMappingURL=config.d.ts.map