Digikey part 516-2025-ND or HEDS-5640-A06 configuration

hi im Ely Acuna and i want to know if i buy this Digikey part 516-2025-ND or HEDS-5640-A06 ENCODER can you help me with its configuration? or you just sale the part? thanks