There are about 3 or 4 popular sizes. These are nominal sizes:
25mm
39mm
42mm
50mm

For roll-film enlarging, the most common is 39mm which is a Leica screw mount (technically not M39).

Enlarger lensboards either have threads, or just a hole and you put a locking ring on the back of the lens.