import type { SpokenIndexBase } from '../interfaces/core'; import type { BatchConfig } from '../types/capture'; import { HttpClient } from '../utils/httpClient'; /** * SpokenIndex class for managing spoken word indexes on RTStreams * * @example * ```typescript * const spokenIndex = await rtstream.indexSpokenWords({ * batchConfig: { type: 'word', value: 10 }, * prompt: 'Extract key topics', * socketId: ws.connectionId, * }); * * await spokenIndex.start(); * ``` */ export declare class SpokenIndex { #private; id: string; rtstreamId: string; status?: string; name?: string; prompt?: string; batchConfig?: BatchConfig; constructor(http: HttpClient, data: SpokenIndexBase); /** * Start the spoken index processing */ start: () => Promise; /** * Stop the spoken index processing */ stop: () => Promise; /** * String representation of the SpokenIndex */ toString(): string; }