import type { BoundaryOffsetSpace, SpeechAlignmentToken } from "./types.js";
export interface SpeechSourceTokenization {
    speechText: string;
    spokenText: string;
    tokens: SpeechAlignmentToken[];
    rawToSpokenOffsetMap: Map<number, number>;
    boundaryOffsetSpace: BoundaryOffsetSpace;
    unsupportedSemantic: boolean;
    hasMarkup: boolean;
}
export interface ResolvedSpeechBoundary {
    token: SpeechAlignmentToken;
    start: number;
    length: number;
    confidence: number;
}
export declare const tokenizeSpeechSource: (args: {
    speechText: string;
}) => SpeechSourceTokenization;
export declare const resolveBoundaryToSpeechToken: (args: {
    tokenization: SpeechSourceTokenization;
    position: number;
    length?: number;
    boundaryWord?: string;
}) => ResolvedSpeechBoundary | null;
export declare const resolveSpokenOffsetToSpeechToken: (args: {
    tokenization: SpeechSourceTokenization;
    position: number;
    length?: number;
    boundaryWord?: string;
}) => ResolvedSpeechBoundary | null;
