function resolveParentPaths( paths, options, clbk ) {
	var opts;
	var done;
	var mode;
	var dir;
	var fcn;
	var err;

	if ( !isStringArray( paths ) ) {
		if ( isArrayLikeObject( paths ) && paths.length === 0 ) {
			return [];
		}
		throw new TypeError( format( 'invalid argument. First argument must be an array of strings. Value: `%s`.', paths ) );
	}
	opts = {};
	if ( arguments.length > 2 ) {
		done = clbk;
		err = validate( opts, options );
		if ( err ) {
			throw err;
		}
	} else {
		done = options;
	}
	if ( !isFunction( done ) ) {
		throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', done ) );
	}
	if ( opts.dir ) {
		dir = resolve( cwd(), opts.dir );
	} else {
		dir = cwd();
	}
	mode = opts.mode || 'all';

	fcn = MODES[ mode ];
	fcn( paths, dir, done );
}
Asynchronously resolves paths from a set of paths by walking parent directories.

@param {Array<string>} paths - paths to resolve
@param {Options} [options] - function options
@param {string} [options.dir] - base directory
@param {string} [options.mode] - mode of operation
@param {Callback} clbk - callback to invoke after resolving paths
@throws {TypeError} first argument must be an array of strings
@throws {TypeError} callback argument must be a function
@throws {TypeError} options argument must be an object
@throws {TypeError} must provide valid options
@returns {void}

@example
resolveParentPaths( [ 'package.json', 'package-lock.json' ], onPaths );

function onPaths( error, paths ) {
    if ( error ) {
        throw error;
    }
    console.log( paths );
}