import { type ToolDefinition } from "@deepseek-ai/dsh-tools"; import { type ToolEnvelope } from "../contracts.js"; import { type ToolOperationContext } from "./context.js"; export type { ToolOperationContext } from "./context.js"; export type JsonValue = Parameters[1]; type ToolData = Record; type OperationResult = Omit, "note">; export interface InspectArguments { readonly file_ref: string; } export interface ReadArguments { readonly file_ref: string; readonly part_ref: string; readonly cursor?: string; readonly max_chars?: number; readonly range?: string; } export interface OcrArguments { readonly part_ref: string; readonly languages: string; } export interface RenderArguments { readonly part_ref: string; readonly scale?: number; } export interface FileToolOperations { inspect(context: ToolOperationContext, arguments_: InspectArguments): Promise; read(context: ToolOperationContext, arguments_: ReadArguments): Promise; ocr(context: ToolOperationContext, arguments_: OcrArguments): Promise; render(context: ToolOperationContext, arguments_: RenderArguments): Promise; } export declare function createFileToolDefinitions(operations: FileToolOperations): readonly ToolDefinition[];