-- ROBLOX FIXME: these *should* return a function, but they don't. we're misaligned on types and implementation here

local function getSnapshotColorForChalkInstance(chalkInstance: Chalk): any --: DiffOptionsColor
	-- return function(_: string): string
	local level = chalkInstance.level

	if level == 3 then
		return chalkInstance.rgb(aForeground3[1], aForeground3[2], aForeground3[3])
			.. chalkInstance.bgRgb(aBackground3[1], aBackground3[2], aBackground3[3])
	end

	if level == 2 then
		return chalkInstance.ansi256(aForeground2) .. chalkInstance.bgAnsi256(aBackground2)
	end

	return chalkInstance.magenta .. chalk.bgYellowBright
	-- end
end
