refactor: extract setpSeg typedef to own header