module.exports = { /** * Warns the user about something * @param {Object} env - the environment or options object * @param {String} msg - the message about the warning */ warn: function(env, msg) { }, /** * gets the path from the filename, e.g. "http://wwe.files.com/ha/ha.less" would return * "http://wwe.files.com/ha/" * If the filename is a file e.g. "file.less" it should return the empty string "" * @param {Object} env - the environment or options object * @param {String} filename - the filename to extract the path. * @returns {String} */ getPath: function (env, filename) { }, /** * Returns whether the path is absolute, e.g. "/file.less" = true, "file.less" = false * @param {Object} env - the environment or options object * @param {String} filename - the filename * @returns {Boolean} */ isPathAbsolute: function(env, filename) { }, /** * Loads a file for an import aynscronously (or syncronously) * @param {Object} env - the environment or options object * @param {String} filename - the filename * @param {String} currentDirectory - the current directory we are in * @param {Function} callback - a function to callback when finished, * taking the format callback(error, contents, fullfilename, reserved) * where error is { type: {string}, message: {string} }, contents is {string} and fullfilename is {string} * for reserved, see browser.js which uses this argument for cache information * @returns {Boolean} */ loadFile: function(env, filename, currentDirectory, callback) { }, supportsDataURI: function(env) { } };