import { FileSearchQuickCommandHandler } from '@opensumi/ide-addons/lib/browser/file-search.contribution'; import { AppConfig } from '@opensumi/ide-core-browser'; import { IEditorDocumentModelService } from '@opensumi/ide-editor/lib/browser'; import { IFileServiceClient } from '@opensumi/ide-file-service'; export declare class FileHandler { private static readonly MAX_FILE_SIZE_BYTES; private static readonly MAX_LINES; private static readonly MAX_CHARS; private static readonly NEWLINE; private fileResultMap; protected modelService: IEditorDocumentModelService; protected fileSearchQuickCommandHandler: FileSearchQuickCommandHandler; protected appConfig: AppConfig; protected fileSystemService: IFileServiceClient; findSimilarFiles(filePath: string, maxResults: number): Promise; private createFileNotFoundError; private createFileTooLargeError; private trimContent; private getLineRange; readFile(fileParams: { relativeWorkspacePath: string; readEntireFile: boolean; fileIsAllowedToBeReadEntirely?: boolean; startLineOneIndexed?: number; endLineOneIndexedInclusive?: number; }): Promise<{ contents: string; didDowngradeToLineRange: boolean; didShortenLineRange: boolean; didShortenCharRange: boolean; didSetDefaultLineRange: boolean; fullFileContents: string; startLineOneIndexed: number; endLineOneIndexedInclusive: number; relativeWorkspacePath: string; } | { contents: string; fullFileContents: string; didDowngradeToLineRange: boolean; didShortenCharRange: boolean; didShortenLineRange?: undefined; didSetDefaultLineRange?: undefined; startLineOneIndexed?: undefined; endLineOneIndexedInclusive?: undefined; relativeWorkspacePath?: undefined; }>; getFileReadResult(relativeWorkspacePath: string): { content: string; startLineOneIndexed: number; endLineOneIndexedInclusive: number; } | undefined; } //# sourceMappingURL=ReadFile.d.ts.map