import { type Static, Type } from "typebox"; import type { Context } from "../context.ts"; import type { AgentHarnessTool } from "../types.ts"; import { type TruncationResult } from "../utils/truncate.ts"; import type { ExecutionToolContext } from "./tool-context.ts"; declare const readSchema: Type.TObject<{ path: Type.TString; offset: Type.TOptional; limit: Type.TOptional; }>; export type ReadToolInput = Static; export interface ReadToolDetails { truncation?: TruncationResult; } export type ReadImageProcessorResult = { ok: true; data: string; mimeType: string; hints: string[]; } | { ok: false; message: string; }; export type ReadImageProcessor = (bytes: Uint8Array, mimeType: string, options: { autoResizeImages: boolean; }, context: Context) => Promise; export interface ReadToolOptions { /** Whether an injected image processor should resize images. Default: true. */ autoResizeImages?: boolean; /** Optional image conversion/resizing implementation. */ imageProcessor?: ReadImageProcessor; } export declare function createReadTool(options?: ReadToolOptions): AgentHarnessTool; export {}; //# sourceMappingURL=read.d.ts.map