import { i as OpenClawConfig } from "./types.openclaw-CXjMEWAQ.js"; import { Kd as requireApiKey, Ml as ResolvedTtsConfig, Rl as SpeechDirectiveTokenParseContext, gd as prepareSimpleCompletionModel, zl as SpeechDirectiveTokenParseResult } from "./types-DaHgOqFX.js"; import { _ as completeSimple } from "./llm-D7I9hiPT.js"; //#region src/tts/tts-core.d.ts type SummarizeTextDeps = { completeSimple: typeof completeSimple; prepareSimpleCompletionModel: typeof prepareSimpleCompletionModel; requireApiKey: typeof requireApiKey; }; type SummarizeResult = { summary: string; latencyMs: number; inputLength: number; outputLength: number; }; /** Summarize long text before synthesis using the configured summary model. */ declare function summarizeText(params: { text: string; targetLength: number; cfg: OpenClawConfig; config: ResolvedTtsConfig; timeoutMs: number; }, deps?: SummarizeTextDeps): Promise; //#endregion //#region src/tts/directive-number.d.ts /** Numeric directive parsing shared by speech providers with bounded knobs. */ type DirectiveNumberRange = { min?: number; max?: number; minExclusive?: boolean; maxExclusive?: boolean; }; /** Parse a numeric speech directive token and return provider overrides when policy allows it. */ 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 };