createKeyframesFunction = (/** @type {Config} */ config, /** @type {GroupSheet} */ sheet) => (
	createKeyframesFunctionMap(config, () => (style) => {
		/** @type {string} Keyframes Unique Identifier. @see `{CONFIG_PREFIX}-?k-{KEYFRAME_UUID}` */
		const name = `${toTailDashed(config.prefix)}k-${toHash(style)}`

		const render = () => {
			if (!sheet.rules.global.cache.has(name)) {
				sheet.rules.global.cache.add(name)

				const cssRules = []

				toCssRules(style, [], [], config, (cssText) => cssRules.push(cssText))

				const cssText = `@keyframes ${name}{${cssRules.join('')}}`

				sheet.rules.global.apply(cssText)
			}

			return name
		}

		return define(render, {
			get name() {
				return render()
			},
			toString: render,
		})
	})
)
Returns a function that applies a keyframes rule.