import type { BaseStore } from "./store/index.js"; export interface InjectedToolOptions> { name: string; description: string; /** JSON Schema for the tool's arguments (visible to LLM — no injected params) */ schema: Record; /** Tool implementation receiving args + injected dependencies */ fn: (args: Args, injected: { state: S; store: BaseStore | null; }) => Promise | unknown; } export interface InjectedTool> { name: string; description: string; schema: Record; /** Call the tool — state and store are injected from runtime context */ fn: (args: Args) => Promise; } /** * Create a tool that automatically receives state and store from the * runtime context. The schema only includes the tool's own arguments, * not the injected dependencies. */ export declare function createInjectedTool>(opts: InjectedToolOptions): InjectedTool; //# sourceMappingURL=injected.d.ts.map