As title. I tried but failed with error message ValueChanged is not a valid property path.
<StateGroup ux:Name="state_group">
<State ux:Name="state_a">
<Set text_input.ValueChanged="{module_exported_function_a}" />
</State>
<State ux:Name="state_b">
<Set text_input.ValueChanged="{module_exported_function_b}" />
</State>
</StateGroup>
<TextInput ux:Name="text_input" ValueChanged="{module_exported_function_a}" />