import { ITelegramClient } from '../../client.types.js';
import { Message } from '../../types/index.js';
import { searchMessages } from './search-messages.js';
/**
 * Search for messages inside a specific chat
 *
 * Iterable version of {@link searchMessages}
 *
 * @param chatId  Chat's marked ID, its username, phone or `"me"` or `"self"`.
 * @param params  Additional search parameters
 */
export declare function iterSearchMessages(client: ITelegramClient, params?: Parameters<typeof searchMessages>[1] & {
    /**
     * Limits the number of messages to be retrieved.
     *
     * @default  `Infinity`, i.e. all messages are returned
     */
    limit?: number;
    /**
     * Chunk size, which will be passed as `limit` parameter
     * for `messages.search`. Usually you shouldn't care about this.
     *
     * @default  `100`
     */
    chunkSize?: number;
}): AsyncIterableIterator<Message>;
