/** * createNodeBridge — local Node.js FsBridge implementation. * * Creates a {@link FsBridge} that reads and writes files via `node:fs/promises` * directly on the host filesystem. Suitable for development, testing, and * any scenario where no sandbox isolation is needed. * * Pass the result to `ToolContext.bridge` (and set `ToolContext.root`) when * calling `registry.resolveAll()` to enable the core fs tools (`read`, `write`, * `edit`). * * @example * ```ts * import { createClawtoolsAsync } from "clawtools"; * import { createNodeBridge } from "clawtools/tools"; * * const ct = await createClawtoolsAsync(); * const root = process.cwd(); * * const tools = ct.tools.resolveAll({ * workspaceDir: root, * root, * bridge: createNodeBridge(root), * }); * ``` * * @module */ import type { FsBridge } from "../types.js"; /** * Create a {@link FsBridge} backed by the local Node.js filesystem. * * @param root - The workspace root directory. Relative paths are resolved * relative to this directory (unless `cwd` is passed to individual calls). */ export declare function createNodeBridge(root: string): FsBridge; //# sourceMappingURL=node-bridge.d.ts.map