/** * Takes a path and a current path and returns an absolute path to a data element. * Note that the path may be absolute or relative. * * The behaviour should mirror the way imports work. * * @param {string} path The path to attempt to get to, which may be absolute or relative. * @param {string} currentPath The current absolute path. * @returns An absolute path to a data element. * @example * getDataPath('./relative.path', 'this.is.the.current.path'); * // => 'this.is.the.current.relative.path' * @example * getDataPath('../relative.path', 'this.is.the.current.path'); * // => 'this.is.the.relative.path' * @example * getDataPath('../../relative.path', 'this.is.the.current.path'); * // => 'this.is.relative.path' */ declare const getDataPath: (path: any, currentPath: any) => any; export default getDataPath;