import { ReadResult, WriteResult, PatchResult, SearchResult } from '../result-types';
export declare class NativeFileOperations {
    private cwd;
    constructor(cwd: string);
    readFile(filepath: string, offset?: number, limit?: number): ReadResult;
    readFileRaw(filepath: string): ReadResult;
    writeFile(filepath: string, content: string): WriteResult;
    patchReplace(filepath: string, oldString: string, newString: string, replaceAll?: boolean): PatchResult;
    deleteFile(filepath: string): WriteResult;
    moveFile(src: string, dst: string): WriteResult;
    search(pattern: string, searchPath?: string, fileGlob?: string, limit?: number, offset?: number): SearchResult;
    private _searchWithRg;
    private _searchWithNode;
    private _readDirectory;
    private _getMimeType;
    private _findSimilarFiles;
    private _fuzzyMatchHint;
    private _matchGlob;
}
//# sourceMappingURL=file-operations.d.ts.map