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