//#region src/mcp/scan-project.d.ts interface ScanResult { project_name: string | null; runtime: 'node'; language: 'typescript' | 'javascript'; framework: string | null; providers: string[]; agent_frameworks: string[]; package_manager: string | null; existing_instrumentation: { has_amplitude_ai: boolean; has_patch: boolean; has_wrappers: boolean; has_session_context: boolean; }; agents: Array<{ inferred_id: string; file: string; call_sites: number; is_instrumented: boolean; is_route_handler: boolean; inferred_description: string | null; call_site_details: Array<{ line: number; provider: string; api: string; instrumented: boolean; containing_function: string | null; code_context: string; }>; tool_definitions: string[]; function_definitions: string[]; }>; total_call_sites: number; instrumented_call_sites: number; uninstrumented_call_sites: number; is_multi_agent: boolean; multi_agent_signals: string[]; has_fan_out: boolean; has_streaming: boolean; has_vercel_ai_sdk: boolean; has_edge_runtime: boolean; has_assistants_api: boolean; has_langgraph: boolean; message_queue_deps: string[]; has_frontend_deps: boolean; has_otel_deps: boolean; otel_packages: string[]; recommendations: string[]; recommended_tier: 'quick_start' | 'standard' | 'advanced'; } declare const MAX_SCAN_FILES = 5000; declare const MAX_SCAN_FILE_BYTES = 1000000; declare function isPathInside(child: string, parent: string): boolean; /** * Resolve `rootPath` for scanning. Returns the real path when it lies inside * one of `allowedRoots` (each resolved with realpath), otherwise null. */ declare function resolveScanRoot(rootPath: string, allowedRoots: string[]): string | null; /** * Read a regular file through one descriptor so the type and size checks * apply to the bytes actually read. Returns null for non-files, files over * `maxBytes`, and symlinks at the final path component. */ declare function readRegularFileCapped(path: string, maxBytes: number): string | null; /** * True for roots too broad to scan: the filesystem root and any directory * that contains the user's home directory (e.g. `/Users`, `/home`). */ declare function isBroadScanRoot(root: string): boolean; /** * Roots a scan may target when the MCP client does not provide any: the * server's working directory, unless that is the filesystem root or home. */ declare function defaultScanRoots(cwd?: string): string[]; declare function scanProject(requestedRoot: string): ScanResult; //#endregion export { MAX_SCAN_FILES, MAX_SCAN_FILE_BYTES, ScanResult, defaultScanRoots, isBroadScanRoot, isPathInside, readRegularFileCapped, resolveScanRoot, scanProject }; //# sourceMappingURL=scan-project.d.ts.map