github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/action/node_modules/@kwsites/file-exists/dist/src/index.d.ts (about) 1 /** 2 * Synchronous validation of a path existing either as a file or as a directory. 3 * 4 * @param {string} path The path to check 5 * @param {number} type One or both of the exported numeric constants 6 */ 7 export declare function exists(path: string, type?: number): boolean; 8 /** 9 * Constant representing a file 10 */ 11 export declare const FILE = 1; 12 /** 13 * Constant representing a folder 14 */ 15 export declare const FOLDER = 2; 16 /** 17 * Constant representing either a file or a folder 18 */ 19 export declare const READABLE: number;