import { ITelegramClient } from '../../client.types.js';
import { InputPeerLike, Message } from '../../types/index.js';
import { getHistory } from './get-history.js';
/**
 * Iterate over chat history. Wrapper over {@link getHistory}
 *
 * @param chatId  Chat's marked ID, its username, phone or `"me"` or `"self"`.
 * @param params  Additional fetch parameters
 */
export declare function iterHistory(client: ITelegramClient, chatId: InputPeerLike, params?: Parameters<typeof getHistory>[2] & {
    /**
     * Limits the number of messages to be retrieved.
     *
     * @default  Infinity, i.e. all messages
     */
    limit?: number;
    /**
     * Chunk size. Usually you shouldn't care about this.
     *
     * @default  100
     */
    chunkSize?: number;
}): AsyncIterableIterator<Message>;
