/** * Project Scaffolding Tools * Project initialization and management tools. * * Provides: * - initProject: Scaffolds a standardized PlatformIO context. * - isValidProject: Validates directory structural health. * - getProjectConfig: Parses configuration syntax schema. */ import type { ProjectContext, ProjectInitResult } from "../types.js"; /** * Initializes a new PlatformIO project. * * @param config - The initialization scheme, requiring at least board and projectDir. * @returns Status string denoting success and generated filesystem paths. */ export declare function initProject(config: { board: string; framework?: string; projectDir: string; platformOptions?: Record; }): Promise; /** * Checks if a directory is a valid PlatformIO project. * * @param projectDir - Evaluated project workspace folder path. * @returns Resolves true if a platformio.ini file is discovered. */ export declare function isValidProject(projectDir: string): Promise; /** * Gets project configuration from platformio.ini. * * @param projectDir - Validated platform path to retrieve configuration from. * @returns Nested map tree of raw string config block keys and variables. */ export declare function getProjectConfig(projectDir: string): Promise; /** * Gets system diagnostic path output. * * @returns JSON payload of system information. */ export declare function getSystemInfo(): Promise; /** * Returns a structured pre-flight snapshot of the project: env list, source * files, lib_deps, cache state, connected devices, last build status. Designed * to be the first MCP tool an agent invokes when picking up a new task, in * place of the typical 4–5 manual file-read tool calls. * * Pure I/O over the project directory + a single optional `pio device list` * for connectedDevices — no toolchain work, no daemons. Safe to call as * often as the agent wants. * * @param projectDir - Absolute or relative path to the PlatformIO project. * @param includeBuildHistory - Whether to inspect `latest-build.log`. */ export declare function getProjectContext(projectDir: string, includeBuildHistory?: boolean): Promise; //# sourceMappingURL=projects.d.ts.map