import { tool } from "@opencode-ai/plugin/tool"; import { type BootstrapRecoverInput, type BootstrapRecoverResult } from "../../schema-kernel/bootstrap.schema.js"; /** * Create the OpenCode write-side `bootstrap-recover` tool. * * The tool validates scope/root input, then delegates symlink repair work to * {@link bootstrapRecover}. Invalid inputs are rejected before any mutation occurs. * * @returns An OpenCode tool definition for BOOT-02 primitive recovery. * * @example * ```ts * const tool = createBootstrapRecoverTool() * ``` */ export declare function createBootstrapRecoverTool(): ReturnType; /** * Repair BOOT-02 primitive symlinks for the requested scope. * * The recover flow walks the meta-builder primitive source roots, classifies each * expected target as `OK`, `MISSING`, `BROKEN`, or `FILE`, recreates only missing * or broken symlinks, and leaves every real file untouched. * * @param input - Validated recover request including project root and requested primitive scope. * @returns Detailed repair counts plus requested/effective scope information. * * @example * ```ts * const result = await bootstrapRecover({ projectRoot: process.cwd(), scope: "project" }) * console.log(result.counts.skills.repaired) * ``` */ export declare function bootstrapRecover(input: BootstrapRecoverInput): Promise; //# sourceMappingURL=bootstrap-recover.d.ts.map