import type { ToolResult } from '../../types/index.js';
/**
 * Context passed to each tool handler invocation.
 */
export interface ToolContext {
    toolName: string;
    sessionId: string;
    projectRoot?: string;
    modelId?: string;
}
/**
 * A tool handler function signature.
 */
export type ToolHandler = (input: Record<string, unknown>, ctx: ToolContext) => Promise<ToolResult>;
/**
 * A middleware is a higher-order function that wraps a ToolHandler.
 */
export type Middleware = (handler: ToolHandler) => ToolHandler;
//# sourceMappingURL=types.d.ts.map