import { default as Long } from 'long';
import { ITelegramClient } from '../../client.types.js';
import { InputPeerLike, InputText, TextWithEntities } from '../../types/index.js';
export interface StreamingDraft {
    /** Random ID of the draft */
    readonly randomId: Long;
    /** Depending on the `mode`, this method will either append or replace the draft */
    send(text: InputText): Promise<void>;
    /** Final text of the draft, for convenience */
    get finalText(): TextWithEntities;
}
/**
 * Create a streaming text message draft
 *
 * @param chatId  Chat ID
 * @param params
 */
export declare function createStreamingDraft(client: ITelegramClient, chatId: InputPeerLike, params?: {
    /**
     * Unique identifier of the business connection on behalf of which the action will be sent
     */
    businessConnectionId?: string;
    /**
     * For comment threads, ID of the thread (i.e. top message)
     */
    threadId?: number;
    /**
     * Mode of the draft's `send` method
     *
     * - `append` - appends the text to the previous draft
     * - `replace` - replaces the previous draft with the new one
     *
     * @default  `replace`
     */
    mode?: 'append' | 'replace';
}): Promise<StreamingDraft>;
