/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { ToolErrorType } from '../base/tool-error.js'; /** * File processing result interface */ export interface FileContentResult { llmContent: string | any; returnDisplay?: string; error?: string; errorType?: ToolErrorType; isTruncated?: boolean; linesShown?: [number, number]; originalLineCount?: number; } /** * Simple file system service interface */ export interface SimpleFileSystemService { readTextFile(filePath: string): Promise; writeTextFile(filePath: string, content: string): Promise; exists(filePath: string): Promise; stat(filePath: string): Promise; } /** * Basic file system service implementation */ export declare class BasicFileSystemService implements SimpleFileSystemService { readTextFile(filePath: string): Promise; writeTextFile(filePath: string, content: string): Promise; exists(filePath: string): Promise; stat(filePath: string): Promise; } /** * Processes file content for reading operations */ export declare function processSingleFileContent(filePath: string, _baseDir: string, fileSystemService: SimpleFileSystemService, offset?: number, limit?: number): Promise; /** * Gets specific MIME type for a file based on extension */ export declare function getSpecificMimeType(filePath: string): string; /** * Checks if a file appears to be binary */ export declare function isBinaryFile(filePath: string): Promise; /** * Checks if a file is a supported image type */ export declare function isImageFile(filePath: string): boolean; /** * Checks if a file is a supported document type */ export declare function isDocumentFile(filePath: string): boolean; //# sourceMappingURL=fileUtils.d.ts.map