import { Tree, NestedReadOptions, Traverse } from '../.types'; export declare type NestedReadResult = Promise>; export interface FlatReadResultFileContent { readonly [filename: string]: Tree.Read.FileContent; } export interface FlatReadResultValue { readonly fileContents: FlatReadResultFileContent; readonly directories: ReadonlyArray; readonly files: ReadonlyArray; readonly all: ReadonlyArray; } export declare type FlatReadResult = Promise; /** * @param name Directory name * @param options Specify stat method and error handler * @param options.onerror Specify error transformer * @param options.stat Specify stat function * @returns Nested directory tree representation */ export declare function readNested(name: string, options?: NestedReadOptions): NestedReadResult; /** * @param name Directory name * @param options Options to pass to `traverse` * @returns List of files, directories and file contents */ export declare function readFlat(name: string, options?: Traverse.Options): FlatReadResult; declare const _default: { nested: typeof readNested & { async: typeof readNested; }; flat: typeof readFlat & { async: typeof readFlat; }; }; export default _default;