declare class TreeNode { name: string; path: string; text?: string; ext?: string; absolutePath?: string; children: Array; constructor(path: string, name?: string, root?: boolean); } export interface IDirectoryOptions { includeFiles?: boolean; ext?: boolean; absolutePath?: boolean; filter?: string; } export default class Directory { /** * exists */ static exists(dirName: string): boolean; /** * * @param dir */ private static createDirRecursively; /** * mkdirRecursiveSync * @param path */ private static mkdirRecursiveSync; /** * * @param root * @param dirName * @returns */ static create(root: string, dirName: string): boolean; /** * * @param pathname */ createDirectories(pathname: string): void; /** * getTreeAsArray * @param dirName * @returns */ static getTreeAsArray(dirName: string): any[]; /** * getRelativeTree * @param dirName * @param title * @param options * @returns */ static getRelativeTree(dirName: string, title?: string, options?: IDirectoryOptions): TreeNode; /** * getTree * @param dirName * @param options * @returns */ private static getTree; /** * getList * @param dir * @param fileList * @returns */ static getList(dir: string, fileList: Object[]): Object[]; } export {}; //# sourceMappingURL=directory.d.ts.map