import type { ChatService } from "../core/config-types.ts";
export interface PreviewChunk {
    id: string;
    text: string;
}
export interface PreviewTransport {
    create(text: string, parseMode?: "HTML", replyToMessageId?: string): Promise<string>;
    edit(id: string, text: string, parseMode?: "HTML"): Promise<void>;
    delete(id: string): Promise<void>;
}
export declare class StreamingPreview {
    private readonly service;
    private readonly transport;
    private renderer;
    private rawText;
    private chunks;
    private replyToMessageId;
    constructor(service: ChatService, transport: PreviewTransport);
    setReplyTo(messageId: string | undefined): void;
    reset(): void;
    clear(): Promise<void>;
    update(rawText: string, finished?: boolean): Promise<string[]>;
}
//# sourceMappingURL=streaming.d.ts.map