function parseOptions(options) {
	if (typeof options === "object" && options !== null) {
		return options;
	}

	const functions = typeof options === "string" ? options !== "nofunc" : true;

	return {
		functions,
		classes: true,
		variables: true,
		allowNamedExports: false,
		enums: true,
		typedefs: true,
		ignoreTypeReferences: true,
	};
}
Parses a given value as options.
@param {any} options A value to parse.
@returns {Object} The parsed options.