/** IPC channel name used to reach the transcription service in the utility process. */ export declare const localTranscriptionChannelName = "localTranscription"; /** Default on-device model used for dictation. */ export declare const DEFAULT_LOCAL_TRANSCRIPTION_MODEL = "nemotron-3.5-asr-streaming-0.6b"; export interface ILocalTranscriptionModelImportResult { readonly model: string; readonly version: number; } /** Lifecycle of the downloaded transcription model. */ export declare enum LocalTranscriptionModelState { /** Model has not been requested yet. */ Idle = "idle", /** Model files are being downloaded to the on-disk cache. */ Downloading = "downloading", /** Model is being loaded into memory. */ Loading = "loading", /** Model is loaded and ready to transcribe. */ Ready = "ready", /** Model failed to download or load. */ Error = "error" } export interface ILocalTranscriptionModelStatus { readonly state: LocalTranscriptionModelState; /** Overall download progress in [0, 1] while `Downloading`. */ readonly progress?: number; /** * Whether model files were actually fetched from the network (a cache miss) * during this preparation, as opposed to loaded from the on-disk cache. Set * on the `Ready` status. Used for download telemetry. */ readonly downloaded?: boolean; /** Human-readable error message when `state === Error` (for UI/logging). */ readonly error?: string; /** * Allowlisted, low-cardinality error identifier when `state === Error` * (e.g. `network`, `notFound`, `memory`), safe to send as telemetry. */ readonly errorCode?: string; } export interface ILocalTranscriptionResult { /** Cumulative transcript for the active session. */ readonly text: string; /** True for the final result emitted after `stop`. */ readonly isFinal: boolean; /** * The leading portion of `text` that Foundry has already finalized (its * endpointed segments). The remainder of `text` is the still-in-progress * interim tail. Lets the renderer stop shimmering finalized text as soon as * a segment is endpointed — including the last one during a trailing silence * — instead of waiting for a later interim to confirm it stopped changing. */ readonly finalizedText?: string; }