exportconstDirections = {
RIGHT: 1,
LEFT: 2,
UP: 4,
DOWN: 8,
} asconst;
// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a valueexporttypeDirections = typeofDirections[keyof typeofDirections];