import { type Static, type TSchema } from "@sinclair/typebox"; import { type WorkletToolDefinition } from "./types.js"; export interface WorkletToolTransport { request(method: "DELETE" | "GET" | "POST", path: string, responseSchema: TSchema_, body?: unknown): Promise>; socketPath: string; token: string; } /** Checks a tool at the point it is written, rather than when a model first calls it. */ export declare function defineWorkletTool(tool: WorkletToolDefinition): WorkletToolDefinition; /** * Registers this worklet's tools with Rig and then answers calls on the NDJSON stream Rig opens * for them. Registration is complete only once the stream is attached, so a worklet that reports * ready has tools a model can actually reach. */ export declare function startWorkletTools(tools: readonly WorkletToolDefinition[], transport: WorkletToolTransport): Promise; //# sourceMappingURL=startWorkletTools.d.ts.map