import type { KaijiBotConfig } from "../../config/config.js";
import type { TtsAutoMode } from "../../config/types.tts.js";
import type { FinalizedMsgContext } from "../templating.js";
import type { ReplyPayload } from "../types.js";
import type { ReplyDispatcher, ReplyDispatchKind } from "./reply-dispatcher.js";
export type AcpDispatchDeliveryMeta = {
    toolCallId?: string;
    allowEdit?: boolean;
    skipTts?: boolean;
};
export type AcpDispatchDeliveryCoordinator = {
    startReplyLifecycle: () => Promise<void>;
    deliver: (kind: ReplyDispatchKind, payload: ReplyPayload, meta?: AcpDispatchDeliveryMeta) => Promise<boolean>;
    getBlockCount: () => number;
    getAccumulatedBlockText: () => string;
    settleVisibleText: () => Promise<void>;
    hasDeliveredFinalReply: () => boolean;
    hasDeliveredVisibleText: () => boolean;
    hasFailedVisibleTextDelivery: () => boolean;
    getRoutedCounts: () => Record<ReplyDispatchKind, number>;
    applyRoutedCounts: (counts: Record<ReplyDispatchKind, number>) => void;
};
export declare function createAcpDispatchDeliveryCoordinator(params: {
    cfg: KaijiBotConfig;
    ctx: FinalizedMsgContext;
    dispatcher: ReplyDispatcher;
    inboundAudio: boolean;
    sessionTtsAuto?: TtsAutoMode;
    ttsChannel?: string;
    suppressUserDelivery?: boolean;
    shouldRouteToOriginating: boolean;
    originatingChannel?: string;
    originatingTo?: string;
    onReplyStart?: () => Promise<void> | void;
}): AcpDispatchDeliveryCoordinator;
