import { IResultData } from "@/api/interface";
import type { ChatMessage } from '@/types/index';
export type ChatMessageCallbackParams = {
    isEnd: boolean;
    type: 'message' | 'action';
    conversation_id: string;
};
export default class ChatMessageHandler {
    private callback;
    private pushCallback;
    private buffer;
    private readonly triggerCharacters;
    private minLength;
    private messages;
    private startPushed;
    constructor(callback: (msg: string, params: ChatMessageCallbackParams) => void, pushCallback: (msgs: IResultData<ChatMessage[]>) => void);
    processMessage(chatMessage: ChatMessage): void;
    includeIndex(chat: string): number;
    pushMessage(buffer: string, params: ChatMessageCallbackParams): void;
    checkAndDoAction(conversation_id: string): boolean;
    executePushCallback(): void;
}
//# sourceMappingURL=chatMessageHandler.d.ts.map