import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSCopying } from "../Foundation/NSCopying.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _NSSecureCoding } from "../Foundation/NSSecureCoding.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { _SFVoiceAnalytics } from "./SFVoiceAnalytics.js";
import type { NSRange } from "../structs/NSRange.js";
export declare class _SFTranscriptionSegment extends _NSObject {
    static alloc(): _SFTranscriptionSegment;
    static new(): _SFTranscriptionSegment;
    init(): _SFTranscriptionSegment;
    /** The string representation of the utterance in the transcription segment. */
    substring(): _NSString;
    /**
     * The range information for the transcription segment's substring, relative to the overall transcription. Use the range information to find the position of the segment within the ``SFTranscription/formattedString`` property of the ``SFTranscription`` object containing this segment.
     */
    substringRange(): NSRange;
    /**
     * The start time of the segment in the processed audio stream. The ``timestamp`` is the number of seconds between the beginning of the audio content and when the user spoke the word represented by the segment. For example, if the user said the word "time" one second into the transcription "What time is it", the timestamp would be equal to `1.0`.
     */
    timestamp(): number;
    /**
     * The number of seconds it took for the user to speak the utterance represented by the segment. The ``duration`` contains the number of seconds it took for the user to speak the one or more words (utterance) represented by the segment. For example, the ``SFSpeechRecognizer`` sets ``duration`` to `0.6` if the user took `0.6` seconds to say `“time”` in the transcription of `“What time is it?"`.
     */
    duration(): number;
    /**
     * The level of confidence the speech recognizer has in its recognition of the speech transcribed for the segment. This property reflects the overall confidence in the recognition of the entire phrase. The value is `0` if there was no recognition, and it is closer to `1` when there is a high certainty that a transcription matches the user's speech exactly. For example, a confidence value of `0.94` represents a very high confidence level, and is more likely to be correct than a transcription with a confidence value of `0.72`.
     */
    confidence(): number;
    /**
     * An array of alternate interpretations of the utterance in the transcription segment.
     * @deprecated
     */
    alternativeSubstrings(): _NSArray;
    /**
     * An analysis of the transcription segment's vocal properties.
     * @deprecated
     */
    voiceAnalytics(): _SFVoiceAnalytics;
}
export interface _SFTranscriptionSegment extends _NSCopying, _NSSecureCoding {
}
