import { EOU } from '../../agents/providers.js'; import type { TurnDetectorModel } from './models.js'; /** Options for {@link TurnDetector}. Unknown keys are ignored (forward-compat). */ export type TurnDetectorOptions = { /** Which detector to use: `'echo-large'` (the default) or `'echo-small'`. See {@link TurnDetectorModel}. */ model?: TurnDetectorModel | string | null; /** End-of-turn probability cutoff in [0, 1]. Default `0.7`. */ threshold?: number; /** Inference service address. Falls back to the `ZRT_INFERENCE_GATEWAY` env var, then the default endpoint. */ host?: string | null; /** Inference service auth token. Default `''`. */ authToken?: string | null; /** Inference service base URL. Default `null`. */ baseUrl?: string | null; [key: string]: any; }; declare class TurnDetectorImpl extends EOU { static readonly displayName = "TurnDetector"; _providerName: string; /** Which detector is in use: `'echo-large'` or `'echo-small'`. */ model: TurnDetectorModel; _modelId: TurnDetectorModel; _host: string; _authToken: string; _inferenceBaseUrl: string | null; constructor(opts?: TurnDetectorOptions); getRuntimeConfig(): Record; } export type TurnDetector = TurnDetectorImpl; /** * End-of-turn detector; decides when the caller has finished speaking. * * Selected by `model`: `'echo-large'` (the default) or `'echo-small'`. * * @throws If `model` is not one of the supported names. */ export declare const TurnDetector: (opts?: TurnDetectorOptions) => TurnDetector; export {};