export interface ReadResult {
    content: string;
    totalLines: number;
    fileSize: number;
    truncated: boolean;
    hint?: string;
    isBinary: boolean;
    isImage: boolean;
    base64Content?: string;
    mimeType?: string;
    error?: string;
    similarFiles?: string[];
}
export interface WriteResult {
    bytesWritten: number;
    dirsCreated: boolean;
    error?: string;
    warning?: string;
}
export interface PatchResult {
    success: boolean;
    diff: string;
    filesModified: string[];
    error?: string;
}
export interface SearchMatch {
    path: string;
    lineNumber: number;
    content: string;
}
export interface SearchResult {
    matches: SearchMatch[];
    totalCount: number;
    truncated: boolean;
    error?: string;
}
export declare function readError(message: string): ReadResult;
export declare function writeError(message: string): WriteResult;
export declare function patchError(message: string): PatchResult;
export declare function searchError(message: string): SearchResult;
export declare function toolResult(data: Record<string, any>): string;
export declare function toolError(message: string, extra?: Record<string, any>): string;
export declare function isImageFile(filepath: string): boolean;
export declare function isBinaryFile(filepath: string): boolean;
export declare function detectLineEnding(sample: string): string | null;
export declare function normalizeLineEndings(text: string, target: string): string;
//# sourceMappingURL=result-types.d.ts.map