import type { AsyncOption, MaybeSyncOption, PoweredFileSystem, ReadOptions, SyncOption } from '../powered-file-system'; /** * Reads a file relative to `pwd` and preserves Buffer mode when `encoding` is `null`. */ export declare function read(this: PoweredFileSystem, src: string, options: SyncOption & ReadOptions & { encoding: null; }): Buffer; export declare function read(this: PoweredFileSystem, src: string, options: SyncOption & ReadOptions): string; export declare function read(this: PoweredFileSystem, src: string, options: AsyncOption & ReadOptions & { encoding: null; }): Promise; export declare function read(this: PoweredFileSystem, src: string, options?: AsyncOption & ReadOptions): Promise; export declare function read(this: PoweredFileSystem, src: string, options?: MaybeSyncOption & ReadOptions): string | Buffer | Promise;