import { AppContext } from "./types.js"; /** * Returns the absolute path to the root folder (one level above the current file) * or to a file/folder if relativePath is specified. * * @param {string} [relativePath=""] - Relative path from the root directory * @returns {string} Absolute path */ export declare function getAppPath(relativePath?: string): string; /** * Dynamically imports a file if it exists, * otherwise returns an empty object. * * @param {string} filePath Absolute path to the file * @returns {Promise} Module or {} */ export declare function fileImport(filePath: string): Promise; /** * Loads a module from a relative path (relative to the root). * * @param {string} relativePath Relative path * @returns {Promise} Imported module */ export declare function loadProjectFile(relativePath: string): Promise; /** * Loads a config file from /config/ * * @param {string} relativePath File name in the /config folder * @returns {Promise} */ export declare function loadProjectConfigFile(relativePath: string): Promise; /** * Reads a file as text * * @param {string} relativePath Relative path to the file * @returns {Promise} File content */ export declare function fileLoadAsText(relativePath: string): Promise; export declare function fileLoaderWithContext(pattern: string, context: AppContext, cwd?: string): Promise; export declare function fileLoader(pattern: string, cwd: string, setToContainer?: boolean): Promise; /** * Default export, if needed */ export default fileLoader; //# sourceMappingURL=file-loader.d.ts.map