/** * Returns the root path for the project * This is used to get to the root dir of the package installed in another device so we can reach the static files * * @param relativePathToRoot The path to the root from the calling file (it will be something like this: "../../..") * @returns The root dir of this project regardless of the device */ declare const getCurrentRelativePath: (relativePathToRoot: string) => string; /** * Assure that a path exists, then create it with all its descendant sub-paths * * @param path The path to be checked * @param prefix Used to accumulate the path recursively (internal use only) * * @usage * createPathsIfNotExist("src/assets/html"); * * > then 3 folders will be created if any of them doesn't exist * --> src/ * --> src/assets/ * --> src/assets/html/ */ declare const pathCreator: (paths: string[], prefix?: string) => Promise; declare const pathRemover: (targets: { path: string; type: "file" | "dir"; }[]) => Promise; export { pathRemover, pathCreator, getCurrentRelativePath };