/** * Wraps `decodeURIComponent` and throws an HTTP 400 error if the decoding * fails. */ export declare const decodePath: (path: string) => string; /** * Returns `true` if the path exists, `false` otherwise. */ export declare const pathExists: (targetPath: string) => Promise; /** * Calls `fs.stat` on `filePath` and returns the result. If `fs.stat` throws an * error with code `ENOENT`, `ENAMETOOLONG`, or `ENOTDIR`, it throws an HTTP 404 * error. Otherwise, it throws an HTTP 500 error. */ export declare const stat: (filePath: string) => Promise; /** * Returns `true` if any filename part of the path starts with a dot. */ export declare const pathIsHidden: (root: string, targetPath: string) => boolean; export declare function getFileType(file: string, ext: string): string; /** * Resolve `relativePath` against `root` path. */ export declare const resolvePath: (rootPath: string, relativePath: string) => string; //# sourceMappingURL=utils.d.ts.map