import { i as NodmixConfig } from "./types.nodmix-Dph4_Y30.js";
import { f as Model, n as Api } from "./types-TBVs22cZ.js";
import { Go as SpeechDirectiveTokenParseResult, Ro as ResolvedTtsConfig, Wo as SpeechDirectiveTokenParseContext, _ as resolveModelAsync } from "./params-DGej4EA0.js";
import { _ as completeSimple } from "./llm-Yj2v24xm.js";
import { s as getApiKeyForModel, x as requireApiKey } from "./model-auth-DuNW_OWn.js";
//#region src/agents/simple-completion-transport.d.ts
declare function prepareModelForSimpleCompletion<TApi extends Api>(params: {
  model: Model<TApi>;
  cfg?: NodmixConfig;
}): Model;
//#endregion
//#region src/tts/tts-core.d.ts
type SummarizeTextDeps = {
  completeSimple: typeof completeSimple;
  getApiKeyForModel: typeof getApiKeyForModel;
  prepareModelForSimpleCompletion: typeof prepareModelForSimpleCompletion;
  requireApiKey: typeof requireApiKey;
  resolveModelAsync: typeof resolveModelAsync;
};
type SummarizeResult = {
  summary: string;
  latencyMs: number;
  inputLength: number;
  outputLength: number;
};
declare function summarizeText(params: {
  text: string;
  targetLength: number;
  cfg: NodmixConfig;
  config: ResolvedTtsConfig;
  timeoutMs: number;
}, deps?: SummarizeTextDeps): Promise<SummarizeResult>;
//#endregion
//#region src/tts/directive-number.d.ts
type DirectiveNumberRange = {
  min?: number;
  max?: number;
  minExclusive?: boolean;
  maxExclusive?: boolean;
};
declare function parseSpeechDirectiveNumberOverride(params: {
  ctx: SpeechDirectiveTokenParseContext;
  overrideKey: string;
  range: DirectiveNumberRange;
  warning: (value: string) => string;
  mergeCurrentOverrides?: boolean;
}): SpeechDirectiveTokenParseResult;
//#endregion
export { summarizeText as n, parseSpeechDirectiveNumberOverride as t };