import type { MoonshineAssetModelConfig, MoonshineCancelTranscriptionResult, MoonshineCreateIntentRecognizerConfig, MoonshineInitializeResult, MoonshineMemoryModelConfig, MoonshineModelConfig, MoonshinePlatformStatus, MoonshineProcessUtteranceResult, MoonshineTranscriptEvent, MoonshineTranscriptionResult, MoonshineTranscriptionInput, MoonshineTranscribeParams } from '../types/interfaces'; type MoonshineListener = (event: MoonshineTranscriptEvent) => void; export declare class MoonshineTranscriber { private readonly service; readonly transcriberId: string; constructor(service: MoonshineService, transcriberId: string); addAudio(samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addAudioToStream(streamId: string, samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addListener(listener: MoonshineListener): () => void; createStream(): Promise; cancel(): Promise; release(): Promise<{ released: boolean; }>; removeStream(streamId: string): Promise<{ success: boolean; }>; start(): Promise<{ success: boolean; }>; startStream(streamId: string): Promise<{ success: boolean; }>; stop(): Promise<{ success: boolean; }>; stopStream(streamId: string): Promise<{ success: boolean; }>; transcribe(params: MoonshineTranscribeParams): Promise; } export declare class MoonshineIntentRecognizer { private readonly service; readonly intentRecognizerId: string; constructor(service: MoonshineService, intentRecognizerId: string); clearIntents(): Promise<{ success: boolean; }>; getIntentCount(): Promise; getIntentThreshold(): Promise; processUtterance(utterance: string): Promise; registerIntent(triggerPhrase: string): Promise<{ success: boolean; }>; release(): Promise<{ success: boolean; }>; setIntentThreshold(threshold: number): Promise<{ success: boolean; }>; unregisterIntent(triggerPhrase: string): Promise<{ success: boolean; }>; } export declare class MoonshineService { private defaultTranscriber; private eventSubscription; private listeners; private readonly offlineProgressTracker; addAudio(samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addAudioForTranscriber(transcriberId: string, samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addAudioToStream(streamId: string, samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addAudioToStreamForTranscriber(transcriberId: string, streamId: string, samples: MoonshineTranscriptionInput, sampleRate: number): Promise<{ success: boolean; }>; addListener(listener: MoonshineListener): () => void; clearIntents(intentRecognizerId: string): Promise<{ success: boolean; }>; cancel(): Promise; cancelForTranscriber(transcriberId: string): Promise; createIntentRecognizer(config: MoonshineCreateIntentRecognizerConfig): Promise; createStream(): Promise; createStreamForTranscriber(transcriberId: string): Promise; createTranscriberFromAssets(config: MoonshineAssetModelConfig): Promise; createTranscriberFromFiles(config: MoonshineModelConfig): Promise; createTranscriberFromMemory(config: MoonshineMemoryModelConfig): Promise; errorToString(code: number): Promise; getIntentCount(intentRecognizerId: string): Promise; getIntentThreshold(intentRecognizerId: string): Promise; getPlatformStatus(): MoonshinePlatformStatus; getVersion(): Promise; isAvailable(): boolean; initialize(config: MoonshineModelConfig): Promise; loadFromAssets(config: MoonshineAssetModelConfig): Promise; loadFromFiles(config: MoonshineModelConfig): Promise; loadFromMemory(config: MoonshineMemoryModelConfig): Promise; release(): Promise<{ released: boolean; }>; releaseTranscriber(transcriberId: string): Promise<{ released: boolean; }>; releaseIntentRecognizer(intentRecognizerId: string): Promise<{ success: boolean; }>; removeAllListeners(): void; removeStream(streamId: string): Promise<{ success: boolean; }>; removeStreamForTranscriber(transcriberId: string, streamId: string): Promise<{ success: boolean; }>; processUtterance(intentRecognizerId: string, utterance: string): Promise; registerIntent(intentRecognizerId: string, triggerPhrase: string): Promise<{ success: boolean; }>; setIntentThreshold(intentRecognizerId: string, threshold: number): Promise<{ success: boolean; }>; start(): Promise<{ success: boolean; }>; startTranscriber(transcriberId: string): Promise<{ success: boolean; }>; startStream(streamId: string): Promise<{ success: boolean; }>; startStreamForTranscriber(transcriberId: string, streamId: string): Promise<{ success: boolean; }>; stop(): Promise<{ success: boolean; }>; stopTranscriber(transcriberId: string): Promise<{ success: boolean; }>; stopStream(streamId: string): Promise<{ success: boolean; }>; stopStreamForTranscriber(transcriberId: string, streamId: string): Promise<{ success: boolean; }>; transcribe(params: MoonshineTranscribeParams): Promise; transcribeForTranscriber(transcriberId: string, params: MoonshineTranscribeParams): Promise; unregisterIntent(intentRecognizerId: string, triggerPhrase: string): Promise<{ success: boolean; }>; private createTranscriberFromResult; private transcribePcmForTranscriber; private ensureDefaultTranscriber; private ensureEventSubscription; private loadDefaultTranscriberFromResult; private teardownEventSubscription; } export {}; //# sourceMappingURL=MoonshineService.d.ts.map