import type { MemFsEditor, MemFsEditorFile } from '../index.js';
type CompareFile = {
    contents: null | Buffer;
    stat?: {
        mode?: number;
    } | null;
};
export declare const isMemFsEditorFileEqual: (a: CompareFile, b: CompareFile) => boolean | undefined;
export declare function _write<EditorFile extends MemFsEditorFile>(this: MemFsEditor<EditorFile>, file: EditorFile): void;
export default function write(this: MemFsEditor, filepath: string, contents: string | Buffer, stat?: {
    mode?: number;
} | null): string;
export {};
