/** * Shared helpers for MCP advanced tools. */ import { type FileSystem } from "../../../src/platform/index.js"; import { directoryExists, ensureDir, fileExists, getFs } from "../../utils/fs.js"; import { formatError, toComponentName } from "../../utils/string.js"; export { directoryExists, ensureDir, fileExists, formatError, getFs, toComponentName }; /** Lowercase variant of toSlug used by MCP tools. */ export declare function toSlug(name: string): string; export type RouteType = "page" | "layout" | "api" | "error" | "loading" | "not-found"; export interface RouteInfo { path: string; type: RouteType; file: string; methods?: string[]; } export interface ProjectContext { name: string; router: "app" | "pages"; routes: RouteInfo[]; directories: { app?: string; pages?: string; components?: string; lib?: string; ai?: string; agents?: string; tools?: string; workflows?: string; tasks?: string; prompts?: string; resources?: string; skills?: string; integrations?: string; }; hasAI: boolean; integrations: string[]; features: string[]; } export declare function getProjectDir(projectPath?: string): string; export declare function scanDirectory(dir: string, baseRoute: string, routes: RouteInfo[], fs: FileSystem): Promise; export declare const ROUTE_FILTER_MAP: Record; //# sourceMappingURL=helpers.d.ts.map