/**
 * The agent side of the build map on the local (stdio) server (plan
 * 2026-11-03-extension-build-map §6.4, phase 2): get_build_map,
 * report_build_step and request_build_review, and show_build_map, which draws
 * the map in the conversation of a client that shows MCP Apps (build-map-app.ts
 * serves the page and the tools it calls). Same writes as the CLI's
 * `extenshi map step|review|choose` (build-map-agent.ts, a copy of the CLI's),
 * to the same state file, so the author's open map shows them within a second.
 *
 * The project facts (manifest, icons, builds, the bound Dojo project) are read
 * by the CLI. While the author's map runs, its server has them, and these tools
 * check writes against its view. Without it, get_build_map reads what the
 * project files prove itself (build-map-files.ts, a copy of the CLI's module;
 * `facts: 'files'`), without the records of `extenshi scan` and `extenshi
 * ai-visibility` or the live Dojo readiness; writes still go through, but
 * nothing is refused for a step whose inputs are not done.
 *
 * Every call tells the running map which release and graph revision this MCP
 * server knows (probeServer with `client`). When the two differ, the answer
 * carries `update`: one sentence on what to do — switch the map to the newer
 * steps, or restart this server on the latest @extenshi/mcp. get_build_map
 * also says which release the map runs (`map`), and `update` names a newer
 * @extenshi/cli on npm that the author can press Update for.
 *
 * Local only: the hosted connector has no access to the author's files and
 * registers none of these tools.
 */
import { type VariantInput } from './build-map-agent.js';
import { type MapClient } from './build-map-store.js';
export type BuildStepInput = {
    step: string;
    agent: string;
    state?: 'start' | 'progress' | 'done' | 'stop';
    task?: number;
    progress?: number;
    claim?: string;
    note?: string;
    files?: string[];
    urls?: string[];
    choice?: string;
    redo?: string;
    round?: number;
};
export type BuildReviewInput = {
    step: string;
    agent: string;
    variants: VariantInput[];
};
export type BuildModuleInput = {
    module: string;
    value: 'on' | 'off' | 'auto';
    agent: string;
    note?: string;
};
export type BuildMapAgent = {
    getMap(projectDir?: string): Promise<unknown>;
    /** What the model gets back when the map is drawn in the chat: where it stands, and the step it opens. */
    showMap(projectDir?: string, step?: string): Promise<unknown>;
    reportStep(projectDir: string | undefined, input: BuildStepInput): Promise<unknown>;
    requestReview(projectDir: string | undefined, input: BuildReviewInput): Promise<unknown>;
    /** Record the author's answer about an optional module; the author confirms the set on the map. */
    setModule(projectDir: string | undefined, input: BuildModuleInput): Promise<unknown>;
};
/**
 * `client`: this MCP server as the map sees it (mapClient('mcp', version));
 * without it the tools do not tell the map who asks and say nothing about versions.
 */
export declare function buildMapAgent(cwd?: string, client?: MapClient): BuildMapAgent;
//# sourceMappingURL=build-map-tools.d.ts.map