///
import * as fs from 'fs';
import { Reader } from '../reader';
import { Writer } from '../writer';
export declare const text: {
reader(path: string, encoding?: string | undefined): Reader;
writer(path: string, encoding?: string | undefined): Writer;
};
export declare const binary: {
reader(path: string): Reader;
writer(path: string): Writer;
};
export interface ListOptions {
recurse?: boolean | 'preorder' | 'postorder';
accept?: (entry: ListEntry) => boolean;
}
export interface ListEntry {
path: string;
name: string;
depth: number;
stat: fs.Stats;
}
export declare function list(path: string, options?: ListOptions): Reader;