/** * Parser for Args.directory and Flags.directory. Checks that the provided path * exists and is a directory. * @param input flag or arg input * @returns Promise */ export declare const dirExists: (input: string) => Promise; /** * Parser for Args.file and Flags.file. Checks that the provided path * exists and is a file. * @param input flag or arg input * @returns Promise */ export declare const fileExists: (input: string) => Promise; /** * Read a file from disk and cache its contents if in production environment. * * Will throw an error if the file does not exist. * * @param path file path of JSON file * @param useCache if false, ignore cache and read file from disk * @returns */ export declare function readJson(path: string, useCache?: boolean): Promise; /** * Safely read a file from disk and cache its contents if in production environment. * * Will return undefined if the file does not exist. * * @param path file path of JSON file * @param useCache if false, ignore cache and read file from disk * @returns or undefined */ export declare function safeReadJson(path: string, useCache?: boolean): Promise; export declare function existsSync(path: string): boolean;