export declare function isDir(dir: string): Promise;