detectDigit
Detect DTMF digits on the call. A typed convenience over detect()
with the digit detector.
Parameters
options
Detector options.
options.digits
The digits to listen for, such as "0123456789#*".
options.timeout
Maximum seconds to run the detector before stopping.
options.onCompleted
Callback invoked when the operation reaches a terminal state.
Returns
Promise<DetectAction> — An action handle with stop() and wait() methods. It resolves on the first detection result.