import type { Config } from '../../config/schema.js';
import type { SessionStore } from '../../session/index.js';
export type WebchatTtsResult = {
    type: 'tts_audio';
    workspaceRelativePath: string;
    mimeType: string;
    name: string;
};
export type WebchatTtsDeps = {
    config: Config | undefined;
    sessionStore: SessionStore;
    getLastAssistantPlainText: (sessionKey: string) => string;
    log: {
        warn: (obj: Record<string, unknown>, msg: string) => void;
    };
};
/**
 * Generate TTS for webchat when config allows; persist under agent home `tts/`.
 */
export declare function maybeEmitWebchatTts(deps: WebchatTtsDeps, sessionKey: string, hadInboundVoice: boolean): Promise<WebchatTtsResult | null>;
export declare function appendAttachmentToLastAssistant(sessionStore: SessionStore, sessionKey: string, att: {
    type: string;
    mimeType: string;
    name: string;
    size: number;
    workspaceRelativePath: string;
}): Promise<void>;
