function assertNotFunction(value, key, objectKey) {
	if (typeof value === "function") {
		const error = new TypeError(
			`Cannot serialize key "${key}" in "${objectKey}": Function values are not supported.`,
		);

		error.messageTemplate = "config-serialize-function";
		error.messageData = { key, objectKey };

		throw error;
	}
}
Asserts that a value is not a function.
@param {any} value The value to check.
@param {string} key The key of the value in the object.
@param {string} objectKey The key of the object being checked.
@returns {void}
@throws {TypeError} If the value is a function.