/** * Vendored read-format helpers from OpenCode. * * Source: https://github.com/sst/opencode * File: packages/opencode/src/tool/read.ts * * These functions and constants are copied to ensure synthetic file parts * match OpenCode's Read tool output exactly. */ /** * Constants from OpenCode's ReadTool */ export declare const DEFAULT_READ_LIMIT = 2000; export declare const MAX_LINE_LENGTH = 2000; export declare const MAX_BYTES: number; /** * Check if a file is binary (copied from OpenCode's ReadTool) */ export declare function isBinaryFile(filepath: string): Promise; /** * Format file content matching OpenCode's Read tool output format. * * @param _filepath - Absolute path to the file (used as `` in the output) * @param content - File content as string * @returns Formatted output with line numbers in tags */ export declare function formatFileContent(_filepath: string, content: string): string;