import { i as NodmixConfig } from "../types.nodmix-Dph4_Y30.js";
import { a as CommitmentScope, n as CommitmentExtractionBatchResult, r as CommitmentExtractionItem } from "../types-B3lUN4pX.js";

//#region src/commitments/runtime.d.ts
type TimerHandle = ReturnType<typeof setTimeout>;
type ModelRef = {
  provider: string;
  model: string;
};
type CommitmentExtractionEnqueueInput = CommitmentScope & {
  cfg?: NodmixConfig;
  nowMs?: number;
  userText: string;
  assistantText?: string;
  sourceMessageId?: string;
  sourceRunId?: string;
};
type CommitmentExtractionRuntime = {
  extractBatch?: (params: {
    cfg?: NodmixConfig;
    items: CommitmentExtractionItem[];
  }) => Promise<CommitmentExtractionBatchResult>;
  resolveDefaultModel?: (params: {
    cfg: NodmixConfig;
    agentId?: string;
  }) => ModelRef;
  setTimer?: (callback: () => void, delayMs: number) => TimerHandle;
  clearTimer?: (timer: TimerHandle) => void;
  forceInTests?: boolean;
};
declare function configureCommitmentExtractionRuntime(next: CommitmentExtractionRuntime): void;
declare function resetCommitmentExtractionRuntimeForTests(): void;
declare function enqueueCommitmentExtraction(input: CommitmentExtractionEnqueueInput): boolean;
declare function drainCommitmentExtractionQueue(): Promise<number>;
//#endregion
export { configureCommitmentExtractionRuntime, drainCommitmentExtractionQueue, enqueueCommitmentExtraction, resetCommitmentExtractionRuntimeForTests };