api: add prefix matcher typedef