/** * Transcript fetching and VTT parsing for Teams meetings. * * Handles extracting transcript URLs from recording messages, * fetching VTT content from the AMS (Async Media Service), * and parsing VTT into structured entries. */ import type { TeamsToken, TranscriptEntry, TranscriptResult } from "../types.js"; /** * Extract the AMS transcript URL from a `RichText/Media_CallRecording` message. * * The message content is XML containing ``. * Returns null if no transcript URL is found. */ export declare function extractTranscriptUrl(messageContent: string): string | null; /** * Extract the meeting title from a `RichText/Media_CallRecording` message. * * The title is in the `` element inside the XML content. */ export declare function extractMeetingTitle(messageContent: string): string; /** * Check whether a `RichText/Media_CallRecording` message represents * a successful recording (as opposed to started/failed). */ export declare function isSuccessfulRecording(messageContent: string): boolean; /** * Parse VTT content into structured transcript entries. * * Handles the Teams VTT format with `text` tags * and HTML entities. */ export declare function parseVtt(vttContent: string): TranscriptEntry[]; /** * Fetch a transcript from the AMS (Async Media Service). * * Uses `Authorization: skype_token ` (note: different format from the * Chat Service `Authentication: skypetoken=` header), or a Bearer * token when no skype token is available. */ export declare function fetchTranscriptVtt(token: TeamsToken, amsTranscriptUrl: string): Promise; /** * Fetch and parse the transcript for a conversation. * * 1. Fetches messages from the conversation * 2. Finds the latest `RichText/Media_CallRecording` message with status="Success" * 3. Extracts the AMS transcript URL from the XML content * 4. Fetches the VTT content from AMS * 5. Parses the VTT into structured entries */ export declare function fetchTranscript(token: TeamsToken, conversationId: string): Promise; //# sourceMappingURL=transcripts.d.ts.map