import { tool } from "@opencode-ai/plugin/tool"; import { type BootstrapInitInput, type BootstrapInitResult } from "../../schema-kernel/bootstrap.schema.js"; /** * Create the OpenCode write-side `bootstrap-init` tool. * * The tool validates BOOT-02 init input, then delegates all filesystem work to * {@link bootstrapInit}. Invalid scope or root input is rejected before any * mutation occurs. * * @returns An OpenCode tool definition for BOOT-02 bootstrap init. * * @example * ```ts * const tool = createBootstrapInitTool() * ``` */ export declare function createBootstrapInitTool(): ReturnType; /** * Initialize a project's BOOT-02 bootstrap surfaces. * * This creates the local `.hivemind/` Tier-1 directories, writes gitkeep files, * installs `configs.json`, ships `configs.schema.json`, updates * `.hivemind/state/version.json`, and installs primitive symlinks into either the * project `.opencode/` root or the selected global OpenCode config root. * Existing user files are preserved; non-symlink targets are never overwritten. * * @param input - Validated init request including project root, requested scope, and optional wizard config. * @returns Detailed init result including requested/effective scope and fallback status. * * @example * ```ts * const result = await bootstrapInit({ projectRoot: process.cwd(), scope: "project", nonInteractive: true, config: {} }) * console.log(result.effectiveScope) * ``` */ export declare function bootstrapInit(input: BootstrapInitInput): Promise; //# sourceMappingURL=bootstrap-init.d.ts.map