import type { MemFsEditor } from '../index.ts';
declare function read(this: MemFsEditor, filepath: string, options?: never): string;
declare function read<const DefaultType extends string | null>(this: MemFsEditor, filepath: string, options: {
    raw?: false;
    defaults: DefaultType;
}): string | DefaultType;
declare function read(this: MemFsEditor, filepath: string, options: {
    raw: true;
    defaults?: never;
}): Buffer;
declare function read<const DefaultType extends Buffer | null>(this: MemFsEditor, filepath: string, options: {
    raw: true;
    defaults: DefaultType;
}): Buffer | DefaultType;
export default read;
